Sign in to follow this  
Followers 0
weirddave

UDPRecv Timeout problem

2 posts in this topic

I've been playing with UDP and have a slight problem with UDPRecv, it times out after 100ms. Is there a way to check if data is available before doing UDPRecv? It's slowing my code down too much waiting.

I did find an old post about the problem:

The 2nd post has some code at the bottom which looks useful, but I can't work out how to use it :(
Can anyone help?

Share this post


Link to post
Share on other sites



The UDP comms happens to have 'both ends' on the same PC for this particular task (easiest way for me to bulk transfer a random amount of data between 2 process').
This means I could potentially send a message to indicate that a UDP packet has been sent prior to doing UDPRecv()

Having never used this method, I am a little lost on where to start (google isn't giving me simple enough answers that I can understand). It would either need to be event driven or not based on something that waits.

I'm open to suggestions :)

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0