Modifier and Type | Method and Description |
---|---|
DataStream |
PeerStream.getDataChannel(String label)
Get a DataChannel of the current peer.
|
DataStream |
PeerStream.openDataChannel(String label)
Open a DataChannel with the current peer.
|
Modifier and Type | Method and Description |
---|---|
Map<String,DataStream> |
PeerStream.getDataChannels()
Get all DataChannel of the current peer.
|
Modifier and Type | Method and Description |
---|---|
void |
DataStream.Handler.onClose(DataStream myself)
Called when the DataStream is closed
|
void |
PeerStream.Handler.onDataStream(String peer_id,
DataStream dataStream)
Called when a DataStream is available.
|
void |
DataStream.Handler.onError(DataStream myself,
String error)
Called when an error occurred
|
void |
DataStream.Handler.onMessage(DataStream myself,
ByteBuffer message,
boolean binary)
Called when a message (data) is received
|
void |
DataStream.Handler.onOpen(DataStream myself)
Called when the DataStream is open and ready to send/receive data.
|
Copyright © 2015. All rights reserved.