@FunctionalInterface public interface TcpSender
Modifier and Type | Method and Description |
---|---|
void |
addNewConnection(TcpConnection connection)
When we are using sockets owned by a
TcpListener , this
method is called each time a new connection is made. |
default void |
removeDeadConnection(TcpConnection connection)
When we are using sockets owned by a
TcpListener , this
method is called each time a connection is closed. |
void addNewConnection(TcpConnection connection)
TcpListener
, this
method is called each time a new connection is made.connection
- The connection.default void removeDeadConnection(TcpConnection connection)
TcpListener
, this
method is called each time a connection is closed.connection
- The connection.