Re: [twsocket] SessionClosed and close/shutdown

2008-08-17 Thread Arno Garrels
JLIST wrote: Hello Francois and Arno for the replies. I read online that on Unix, close() reduce a ref count for a socket. The last close() will call shutdown() automatically. I'm not sure if the same is true on Windows but I would think so because it makes sense and the whole TCP/IP thing

Re: [twsocket] SessionClosed and close/shutdown

2008-08-16 Thread JLIST
Hello Francois and Arno for the replies. I read online that on Unix, close() reduce a ref count for a socket. The last close() will call shutdown() automatically. I'm not sure if the same is true on Windows but I would think so because it makes sense and the whole TCP/IP thing starts on Unix

[twsocket] SessionClosed and close/shutdown

2008-08-10 Thread JLIST
Hello all, ICS TWSocket only has a SessionClosed event for close of connection. I suppose a socket.close() from the remote side (or local) will trigger this event. I wonder if shutdown(0/1/2) will also trigger the event? For example, a browser using HTTP/1.0 often sends a request then does a