public class OpenTCPRelayConnection extends BaseRelayConnection
listeners| Constructor and Description |
|---|
OpenTCPRelayConnection(PeerConnection connection,
Peer peer,
ConnectionConfiguration config) |
| 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 OpenTCPRelayConnection(PeerConnection connection, Peer peer, ConnectionConfiguration config)
public FutureResponse sendToRelay(Message message)
sendToRelay in class BaseRelayConnectionpublic FutureDone<Void> shutdown()
shutdown in class BaseRelayConnectionpublic void onMapUpdateFailed()
BaseRelayConnectionPeerMapUpdateTask failed to send the new map.
This can act as an indicator that the relay peer is now offline.onMapUpdateFailed in class BaseRelayConnectionpublic void onMapUpdateSuccess()
BaseRelayConnectionPeerMapUpdateTask successfully sent the map
to the relay peer.onMapUpdateSuccess in class BaseRelayConnectionCopyright © 2014. All rights reserved.