RecvFrom TimeOut and flags

This is a discussion on RecvFrom TimeOut and flags within the Symbian forums in Other Technologies category; 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....

Go Back   Application Development Forum > Other Technologies > Symbian

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-16-2008, 09:18 AM
mach
Guest
 
Default RecvFrom TimeOut and flags


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.
Reply With Quote
  #2  
Old 07-17-2008, 05:10 AM
tanzimh
Guest
 
Default Re: RecvFrom TimeOut and flags

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}
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:41 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.