A datagram socket. More...
Public Member Functions | |
| abstract int | getMaxQueuedPackets () |
| Gets the maximum number of packets that can be queued at any given point in time. More... | |
| abstract int | getReceiveBufferSize () |
| Gets the current receive buffer size. More... | |
| abstract int | getSendBufferSize () |
| Gets the current send buffer size. More... | |
| abstract void | receiveAsync (fm.liveswitch.IAction3< fm.liveswitch.DataBuffer, String, Integer > onSuccess, fm.liveswitch.IAction1< java.lang.Exception > onFailure) |
| Receives data asynchronously. More... | |
| abstract fm.liveswitch.Error | send (fm.liveswitch.DataBuffer buffer, String ipAddress, int port) |
| Sends data synchronously. More... | |
| abstract void | setMaxQueuedPackets (int value) |
| Sets the maximum number of packets that can be queued at any given point in time. More... | |
Public Member Functions inherited from fm.liveswitch.ManagedSocket | |
| abstract boolean | bind (String ipAddress, int port, fm.liveswitch.BooleanHolder addressInUse) |
| Binds the socket to a local endpoint. More... | |
| abstract void | close () |
| Closes the socket. More... | |
| long | getAdapterSpeed () |
| Gets the adapter speed. More... | |
| abstract boolean | getIPv6 () |
| Gets a value indicating whether the socket supports IPv6. More... | |
| abstract boolean | getIsClosed () |
| Gets a value indicating whether this instance is closed. More... | |
| abstract String | getLocalIPAddress () |
| Gets the local IP address. More... | |
| abstract int | getLocalPort () |
| Gets the local port. More... | |
| String[] | getPublicIPAddresses () |
| Gets the public IP addresses, if known. More... | |
| void | setAdapterSpeed (long value) |
| Sets the adapter speed. More... | |
| void | setPublicIPAddresses (String[] value) |
| Sets the public IP addresses, if known. More... | |
Protected Member Functions | |
| DatagramSocket () | |
| void | raiseReceiveFailure (fm.liveswitch.IAction1< java.lang.Exception > callback, java.lang.Exception exception) |
| Invokes the receive failure callback. More... | |
| void | raiseReceiveSuccess (fm.liveswitch.IAction3< fm.liveswitch.DataBuffer, String, Integer > callback, fm.liveswitch.DataBuffer buffer, String ipAddress, int port) |
| Invokes the receive success callback. More... | |
Protected Member Functions inherited from fm.liveswitch.ManagedSocket | |
| ManagedSocket () | |
A datagram socket.
|
protected |
|
abstract |
Gets the maximum number of packets that can be queued at any given point in time.
Reimplemented in fm.liveswitch.UdpSocket.
|
abstract |
Gets the current receive buffer size.
Reimplemented in fm.liveswitch.UdpSocket.
|
abstract |
Gets the current send buffer size.
Reimplemented in fm.liveswitch.UdpSocket.
|
protected |
Invokes the receive failure callback.
| callback | The callback. |
| exception | The exception. |
|
protected |
Invokes the receive success callback.
| callback | The callback. |
| buffer | The buffer. |
| ipAddress | The IP address. |
| port | The port. |
|
abstract |
Receives data asynchronously.
| onSuccess | The callback to invoke on success. |
| onFailure | The callback to invoke on failure. |
|
abstract |
Sends data synchronously.
| buffer | The buffer. |
| ipAddress | The remote IP address. |
| port | The remote port. |
|
abstract |
Sets the maximum number of packets that can be queued at any given point in time.
Reimplemented in fm.liveswitch.UdpSocket.