SocketSelector.add

Add a new TcpListener to the selector.

This function keeps a weak reference to the socket, so you have to make sure that the socket is not destroyed while it is stored in the selector. This function does nothing if the socket is not valid.

  1. void add(TcpListener listener)
    class SocketSelector
  2. void add(TcpSocket socket)
  3. void add(UdpSocket socket)

Parameters

listener

Reference to the listener to add

Meta