|
HI Ehsan.
Yes you could but what I want to try and figure out
if there is a way to do it without "storing" the sockets at all. When you
accept a connection you get a new "socket" back which I'm then associating with
a completion port.
When some activity happens on the socket the
completion port return the socket and relevant data to use so far I don't have
to keep any sort of list about sockets.
Now when it comes to shutting the server down I
gather the correct way to do so it to close all the sockets. Stop all the
thread running and the close the completion port. Its at this point that I
need the list of sockets.
I was wondering - since the completion port returns
the correct socket if there was a way to get it to return all the sockets in
some way so I could avoid having to create or use some sort of
list?
Regards
Max
|
Title: Message
