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 t

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 > pas

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, sAcceptSocke

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

2006-07-29 Thread Francois PIETTE
Saturday, July 29, 2006 4:30 PM 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 > m

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 exist

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" Sent: Saturday, July 29, 2006 5:30 PM Subject: [twsocket] AcceptEx() in a MT socket server > Hello, > > Today I found

[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