T
Tash Robinson
I have been searching and can not seem to find a good example of a
working UDP client that listens, but does not block while waiting for
data arrival.
I am trying to write a client application that needs to listen on
several TCP ports and one UDP port. It will send a start signal over
UDP and then a repeated status message of a fixed length will be
returned from the server. I need to listen to these messages, but I
can't stop the program execution if no message is available yet like
the UdpClient.Receive method does. I have found several example of
async TCP but can not figure out how this would work with UDP.
Does anyone have a working example of a non-blocking UDP client, or
can someone give me some guidance in this area?
Thanks!
working UDP client that listens, but does not block while waiting for
data arrival.
I am trying to write a client application that needs to listen on
several TCP ports and one UDP port. It will send a start signal over
UDP and then a repeated status message of a fixed length will be
returned from the server. I need to listen to these messages, but I
can't stop the program execution if no message is available yet like
the UdpClient.Receive method does. I have found several example of
async TCP but can not figure out how this would work with UDP.
Does anyone have a working example of a non-blocking UDP client, or
can someone give me some guidance in this area?
Thanks!