>I do not think the issue understood the same here and there. Why is
> the Count = -1 then?

When you call Send, passing a number of bytes and send is not able to send 
it without blocking and non-blocking mode is active, then send returns -1 to 
tell you it can't do what you asked. Nothing is sent. WSAGetLastError tells 
you what exactly happended.

> What should one do to have the sync method work?

ICS doesn't use blocking mode. Trying to change that without knowing exactly 
what you are doing will result in unexpected results - as you can see.

You'd better design your code to use non blocking mode.
If ISAPI is what you want, have a look at IcsIsap1.pas in the demos.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html

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

Reply via email to