| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I have the impresion that a RecvFrom will quit after a certain timeout. Is there a way to set this timeout interval? Possibly, this might be by means of the flags one could pass in the RecvFro= m call.=20 But, I don´t know how to find which flags I could pass to the RecvFro= m call. I find this rather=20 curiously lacking from the documentation. |
|
#2
| |||
| |||
| Hi [~mach], There's no timeout by default*. The only way RecvFrom will return is when a= datagram packet is available, an error occured or the connection closed. If you'd like to have your own timeout mechanism, I suggest using a seperat= e timer object in your code and wait for it, if RecvFrom doesn't complete b= y that time, just call call CancelRecvFrom. * BSD style sockets on *NIX platforms may support a socket option SO_RECVTI= MEO, that might have done the trick, but its not present on Symbian OS AFAI= K, even if you are using PIPS. Hope that helps. {font:Times New Roman}{size:4}{size}{font} |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.