> what is difference between Timeout patameter in Send/RecvStream and > Sock.SetRecvTimeout/Sock.SetSendTimeout settings? > > Does parameter in Send/Recv functions override these settings? > What normally Timeout is? > Does anybody change it during session?
Synapse using blocking sockets. So, if you call recv operation and no data is available for reading, your thread going to sleep until system receive data. If no data income, then you can sleep forever. For protect this neverending sleep I define parameter Timeout. If data not income within timeout, then your thread wakeup with timeout socket error. This is basic programming principe in Synapse. Some socket providers (but not all!) provides timeout handling too. For this exists Recv/SendTmeout properties. Usable in the special cases only when you are calling socket provider dirrectly. Not needed in the standard Synapse usage. -- Lukas Gebauer. http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. http://geoget.ararat.cz/ - Geocaching solution ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
