Hello Shekar, > I check socket state before every PutDataInSendBuffer and Send. > Should i use try except end around these statements ?
You should do around Send; > Why should > client error result in listen stopping ? Should not. To debug you should log in OnSessionClosed of the the server. There you post a message over there to let it listening again if it is a 24/7 application. > Does this mean KeepAlive is always ON ? How often is a keepalive > packet transmitted I dont think there is mutch keep alive in windows. If you want to check if connection is still working you have to do a keep aive in the protocol you design. --- Rgds, Wilfried http://www.mestdagh.biz Tuesday, September 13, 2005, 06:30, A.Shekar wrote: > Hi Wilfried, > I check socket state before every PutDataInSendBuffer and Send. > Should i use try except end around these statements ? Why should > client error result in listen stopping ? > In TCustomWSocket.Connect, after SetLingerOption, the following code is > present : > optval := -1; > iStatus := WSocket_Synchronized_setsockopt(FHSocket, SOL_SOCKET, > SO_KEEPALIVE, @optval, SizeOf(optval)); > Does this mean KeepAlive is always ON ? How often is a keepalive packet > transmitted ? > regards > Shekar -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be