> assign the sAcceptSocket to property TWSocket.Handle?

That's what Dup() is all about. Dup() assign a socket handle to an existing 
TWSocket instance.

> can I achieve that calling TWSocket.Close wont close the
> socket handle so it can be reused?

This would require a change in the component to eliminate CloseSocket.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be




----- Original Message ----- 
From: "Arno Garrels" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: 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
> multi-threaded TWSocketServer. It is capable to accept into an
> already existing socket which promises to be very fast when
> plenty of connections need to be accepted. Is it possible to
> assign the sAcceptSocket to property TWSocket.Handle? And how
> can I achieve that calling TWSocket.Close wont close the
> socket handle so it can be reused?
>
> ---
> Arno Garrels [TeamICS]
> http://www.overbyte.be/eng/overbyte/teamics.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 

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