Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: UDP Client and Server in one

by NetWallah (Canon)
on Mar 06, 2017 at 07:08 UTC ( [id://1183734]=note: print w/replies, xml ) Need Help??


in reply to UDP Client and Server in one

Here is one way to do it:

* Make your "recv" non-blocking, with a 5-second timeout
* Write to your socket with content based on the most recent successful recv

You will likely run into trouble implementing this - once you have some code, post back here, and we can help.

        ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found