> Are the following Lines doing the same? No.
Synapse high-level communication functions using my own timeout handling routines. > fPop3Send.Sock.SetTimeout(5000); This set timeout at socket API level. It is good if you are calling low-level communication functions (recvbuffer, sendbuffer) only. It is good in special cases only when you are doing special handling of socket directly. Do not set it my protocol implementations! > fPop3Send.Timeout:=5000; This is right place for setting timeout in my protocol implementations. > When the network is down (e.g. when I unplug the cable), TPop3Send is > blocking longer than the above 5000ms. This is surely because it can't > resolve the hostname. Is there a way to timeout name-resolving too? Timeout for name resolving and for Connectiong is not controlable from application, both depending on your operating system. > In which cases should I set "InterPacketTimeout:=true;" ? It is set by default. ;-) It os good for my timeout routines. By default, all my timeouts are 'interpacket'. What this mean? Timeout is defined as 'maximum time for waiting for next packet'. Timeout value is maximum tiome when your 'wire' is silent. If you set this to false, then timeout is defined as "maximum time for requested operation" -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
