Re: [twsocket] AcceptEx() in a MT socket server

2006-08-01 Thread Arno Garrels
Francois PIETTE wrote: It could work. A first test seems to confirm that AcceptEx() using pre-allocated sockets and an I/O completion port is twice as fast as common Accept(). Only I still do not get the peer address information thru GetAcceptExSockAddrs :( On my slow 900 Mhz box I'm now able

[twsocket] AcceptEx() in a MT socket server

2006-07-29 Thread Arno Garrels
Hello, Today I found AcceptEx() in winsock API (http://msdn.microsoft.com/library/en-us/winsock/winsock/acceptex_2.asp?frame=true) and I wonder whether the function might be usefull in a multi-threaded TWSocketServer. It is capable to accept into an already existing socket which promises to be

Re: [twsocket] AcceptEx() in a MT socket server

2006-07-29 Thread Fastream Technologies
much effort. Best Regards, SubZero - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Saturday, July 29, 2006 5:30 PM Subject: [twsocket] AcceptEx() in a MT socket server Hello, Today I found AcceptEx() in winsock API (http

Re: [twsocket] AcceptEx() in a MT socket server

2006-07-29 Thread Arno Garrels
Arno Garrels wrote: Hello, Today I found AcceptEx() in winsock API (http://msdn.microsoft.com/library/en- us/winsock/winsock/acceptex_2.asp?frame=true) and I wonder whether the function might be usefull in a multi-threaded TWSocketServer. It is capable to accept into an already existing

Re: [twsocket] AcceptEx() in a MT socket server

2006-07-29 Thread Francois PIETTE
Subject: [twsocket] AcceptEx() in a MT socket server Hello, Today I found AcceptEx() in winsock API (http://msdn.microsoft.com/library/en-us/winsock/winsock/acceptex_2.asp?frame=true) and I wonder whether the function might be usefull in a multi-threaded TWSocketServer. It is capable to accept

Re: [twsocket] AcceptEx() in a MT socket server

2006-07-29 Thread Arno Garrels
Francois PIETTE wrote: assign the sAcceptSocket to property TWSocket.Handle? That's what Dup() is all about. Dup() assign a socket handle to an existing TWSocket instance. Sure, but I was asking because of this note in the docs: When this operation is successfully completed, sAcceptSocket

Re: [twsocket] AcceptEx() in a MT socket server

2006-07-29 Thread Francois PIETTE
assign the sAcceptSocket to property TWSocket.Handle? That's what Dup() is all about. Dup() assign a socket handle to an existing TWSocket instance. Sure, but I was asking because of this note in the docs: When this operation is successfully completed, sAcceptSocket can be passed, but to