public interface ConnectionListener
| Modifier and Type | Method and Description |
|---|---|
void |
onConnect(SocketAddress address,
byte identifier,
boolean isServer) |
void |
onDisconnect(SocketAddress address,
byte identifier) |
void onConnect(SocketAddress address, byte identifier, boolean isServer)
address - the address that we are connceted toidentifier - the remote identifier that we are not connected to.isServer - if this host accepted the connection isServer is true, if
we made the connection to a remote host then isServer is falsevoid onDisconnect(SocketAddress address, byte identifier)
address - the address that we have been disconnected fromidentifier - the identifer the address that we have been disconnected from or Byte
.MIN_VALUE if not knownCopyright © 2015. All rights reserved.