public interface ConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
onConnect(InetAddress address,
byte identifier,
boolean isServer) |
void |
onDisconnect(InetAddress address,
byte identifier) |
void onConnect(InetAddress 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 false
void onDisconnect(InetAddress address, byte identifier)
address
- the address that we have been disconnected fromidentifier
- the identifer the address that we have been disconnected from or ByteCopyright © 2015. All rights reserved.