Create a SocketSet with a specific initial capacity (defaults to FD_SETSIZE, the system's default capacity).
Add a Socket to the collection. The socket must not already be in the collection.
Return nonzero if this Socket is in the collection.
Remove this Socket from the collection. Does nothing if the socket is not in the collection already.
Reset the SocketSet so that there are 0 Sockets in the collection.
A collection of sockets for use with Socket.select.
SocketSet wraps the platform fd_set type. However, unlike fd_set, SocketSet is not statically limited to FD_SETSIZE or any other limit, and grows as needed.