Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: UDP connection

by sundialsvc4 (Abbot)
on May 03, 2012 at 13:31 UTC ( [id://968731]=note: print w/replies, xml ) Need Help??


in reply to UDP connection

One thread could also simply be dedicated to sending heartbeats every 10 seconds.   If you think that this might interfere with data transfer, record the timestamp each time you send a message to any port, and have the heartbeat process read it.   I would have the heartbeat timer internally set for 3 seconds in this case so that it could always be sure to send a message to any of the ports while not allowing the 10-second window to expire for any.   But since you’re not talking about hundreds of ports here, almost any similar design will do.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://968731]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-16 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found