Arguments for the data channel receive event. More...
Public Member Functions | |
| DataChannelReceiveArgs () | |
| fm.liveswitch.DataBuffer | getDataBytes () |
| Gets a received data buffer if it is available. More... | |
| String | getDataString () |
| Gets a received data string if it is available. More... | |
| fm.liveswitch.ConnectionInfo | getRemoteConnectionInfo () |
| Gets the remote connection info. More... | |
| void | setDataBytes (fm.liveswitch.DataBuffer value) |
| Sets a received data buffer if it is available. More... | |
| void | setDataString (String value) |
| Sets a received data string if it is available. More... | |
Arguments for the data channel receive event.
| fm.liveswitch.DataChannelReceiveArgs.DataChannelReceiveArgs | ( | ) |
| fm.liveswitch.DataBuffer fm.liveswitch.DataChannelReceiveArgs.getDataBytes | ( | ) |
Gets a received data buffer if it is available.
Set to null if a data string was not received. Bear in mind that when accessing the payload data from the fm.liveswitch.DataBuffer, only fm.liveswitch.DataBuffer#getLength bytes starting with the fm.liveswitch.DataBuffer#getIndex byte should be read. See examples.
Example:
| String fm.liveswitch.DataChannelReceiveArgs.getDataString | ( | ) |
Gets a received data string if it is available.
Set to null if a data string was not received.
Example:
| fm.liveswitch.ConnectionInfo fm.liveswitch.DataChannelReceiveArgs.getRemoteConnectionInfo | ( | ) |
Gets the remote connection info.
| void fm.liveswitch.DataChannelReceiveArgs.setDataBytes | ( | fm.liveswitch.DataBuffer | value | ) |
Sets a received data buffer if it is available.
Set to null if a data string was not received. Bear in mind that when accessing the payload data from the fm.liveswitch.DataBuffer, only fm.liveswitch.DataBuffer#getLength bytes starting with the fm.liveswitch.DataBuffer#getIndex byte should be read. See examples.
Example:
| void fm.liveswitch.DataChannelReceiveArgs.setDataString | ( | String | value | ) |
Sets a received data string if it is available.
Set to null if a data string was not received.
Example: