public class TCPRelayClient extends BaseRelayClient
listeners| Constructor and Description |
|---|
TCPRelayClient(PeerConnection connection,
Peer peer) |
| Modifier and Type | Method and Description |
|---|---|
void |
onMapUpdateFailed()
Is called when the
PeerMapUpdateTask failed to send the new map. |
void |
onMapUpdateSuccess()
Is called when the
PeerMapUpdateTask successfully sent the map
to the relay peer. |
FutureResponse |
sendToRelay(Message message) |
FutureDone<Void> |
shutdown() |
addCloseListener, notifyCloseListeners, relayAddresspublic TCPRelayClient(PeerConnection connection, Peer peer)
public FutureResponse sendToRelay(Message message)
sendToRelay in class BaseRelayClientpublic FutureDone<Void> shutdown()
shutdown in class BaseRelayClientpublic void onMapUpdateFailed()
BaseRelayClientPeerMapUpdateTask failed to send the new map.
This can act as an indicator that the relay peer is now offline.onMapUpdateFailed in class BaseRelayClientpublic void onMapUpdateSuccess()
BaseRelayClientPeerMapUpdateTask successfully sent the map
to the relay peer.onMapUpdateSuccess in class BaseRelayClientCopyright © 2015. All rights reserved.