Re: [twsocket] Receive function
Hi Engi, No the Receive method is not blocking. The method copy the already received data with a maximum of what you give to it as size. -- mvg, Wilfried http://www.mestdagh.biz -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens Engi Verzonden: dinsdag 2 maart 2010 9:42 Aan: ICS support mailing, Onderwerp: [twsocket] Receive function Hi, In TWSocketClient class, is the Receive function locking while BufferSize is not reached ? TIA, Engi -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Receive function
thanks for answer Le 07/03/2010 18:16, wilfried Mestdagh a e'crit : Hi Engi, No the Receive method is not blocking. The method copy the already received data with a maximum of what you give to it as size. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Receive function in ClientDataAvailable procedure
Igor Pokorny wrote: Hello all, Could someone explain what the result -1 from Receive function in ClientDataAvailable procedure means? No data, error or something else ? Reading LastError after having result -1 gives the value 10035. It means a winsock error, in your case 10035 (Operation would block). Arno Garrels -- 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
Re: [twsocket] Receive function in ClientDataAvailable procedure
Hello Igor, Receive can return 0 or -1. If so then just exit the event and dont care. Yes it is normally closed or error, but in this case the 10035 TWSocket take care of it. You never have to call LastError because TWSocket have Error code in each event. --- Rgds, Wilfried http://www.mestdagh.biz Tuesday, September 13, 2005, 13:11, Igor Pokorny wrote: Hello all, Could someone explain what the result -1 from Receive function in ClientDataAvailable procedure means? No data, error or something else ? Reading LastError after having result -1 gives the value 10035. Thanks in advance Igor -- 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
Re: [twsocket] Receive function in ClientDataAvailable procedure
Wilfried, I thank you very much for your fast and clear answer. Regards Igor On 9/13/05, Wilfried Mestdagh [EMAIL PROTECTED] wrote: Hello Igor, Receive can return 0 or -1. If so then just exit the event and dont care. Yes it is normally closed or error, but in this case the 10035 TWSocket take care of it. You never have to call LastError because TWSocket have Error code in each event. --- Rgds, Wilfried http://www.mestdagh.biz Tuesday, September 13, 2005, 13:11, Igor Pokorny wrote: Hello all, Could someone explain what the result -1 from Receive function in ClientDataAvailable procedure means? No data, error or something else ? Reading LastError after having result -1 gives the value 10035. Thanks in advance Igor -- 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 -- 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