I have a HashSet that is a collection of client sockets. When a client connects, the socket is added to the HashSet. I then need to access that socket, but I don't know how to access it in the HashSet.
...
clientSockets.Add(listenerSocket.EndAccept(async));
WaitForData(lastAddedSocket);
....
How could I determine what lastAddedSocket
is?