Public Member Functions | |
| int | getReceiveBufferSize () |
| Gets the current receive buffer size. More... | |
| int | getSendBufferSize () |
| Gets the current send buffer size. More... | |
| UdpSocket (boolean ipv6) | |
| UdpSocket (boolean ipv6, int sendBufferSize, int receiveBufferSize) | |
| boolean | getIPv6 () |
| Gets a value indicating whether the socket supports IPv6. More... | |
| boolean | getIsClosed () |
| Gets a value indicating whether this instance is closed. More... | |
| String | getLocalIPAddress () |
| Gets the local IP address. More... | |
| int | getLocalPort () |
| Gets the local port. More... | |
| void | setMaxQueuedPackets (int maxQueuedPackets) |
| Sets the maximum number of packets that can be queued at any given point in time. More... | |
| int | getMaxQueuedPackets () |
| Gets the maximum number of packets that can be queued at any given point in time. More... | |
| boolean | bind (String ipAddress, int port, BooleanHolder addressInUse) |
| void | receiveAsync (final IAction3< DataBuffer, String, Integer > onSuccess, final IAction1< Exception > onFailure) |
| Error | send (DataBuffer buffer, String ipAddress, int port) |
| void | close () |
| Closes the socket. More... | |
Public Member Functions inherited from fm.liveswitch.DatagramSocket | |
| 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... | |
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... | |
| long | getAdapterSpeed () |
| Gets the adapter speed. 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... | |
Static Public Member Functions | |
| static int | getDefaultSendBufferSize () |
| Gets the default socket send buffer size. More... | |
| static void | setDefaultSendBufferSize (int value) |
| Sets the default socket send buffer size. More... | |
| static int | getDefaultReceiveBufferSize () |
| Gets the default socket receive buffer size. More... | |
| static void | setDefaultReceiveBufferSize (int value) |
| Sets the default socket receive buffer size. More... | |
| static boolean | getAttemptDscp () |
| Determine whether sockets will attempt to use DSCP. More... | |
| static void | setAttemptDscp (boolean dscp) |
| Set whether sockets will attempt to use DSCP. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from fm.liveswitch.DatagramSocket | |
| 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 () | |
| fm.liveswitch.UdpSocket.UdpSocket | ( | boolean | ipv6 | ) |
| fm.liveswitch.UdpSocket.UdpSocket | ( | boolean | ipv6, |
| int | sendBufferSize, | ||
| int | receiveBufferSize | ||
| ) |
| boolean fm.liveswitch.UdpSocket.bind | ( | String | ipAddress, |
| int | port, | ||
| BooleanHolder | addressInUse | ||
| ) |
| void fm.liveswitch.UdpSocket.close | ( | ) |
Closes the socket.
Reimplemented from fm.liveswitch.ManagedSocket.
|
static |
Determine whether sockets will attempt to use DSCP.
Default is false. You must "opt-in".
|
static |
Gets the default socket receive buffer size.
Defaults to 65536. A negative value indicates that the receive buffer size will not be set.
|
static |
Gets the default socket send buffer size.
Defaults to 65536. A negative value indicates that the send buffer size will not be set.
| boolean fm.liveswitch.UdpSocket.getIPv6 | ( | ) |
Gets a value indicating whether the socket supports IPv6.
Reimplemented from fm.liveswitch.ManagedSocket.
| boolean fm.liveswitch.UdpSocket.getIsClosed | ( | ) |
Gets a value indicating whether this instance is closed.
Reimplemented from fm.liveswitch.ManagedSocket.
| String fm.liveswitch.UdpSocket.getLocalIPAddress | ( | ) |
Gets the local IP address.
Reimplemented from fm.liveswitch.ManagedSocket.
| int fm.liveswitch.UdpSocket.getLocalPort | ( | ) |
Gets the local port.
Reimplemented from fm.liveswitch.ManagedSocket.
| int fm.liveswitch.UdpSocket.getMaxQueuedPackets | ( | ) |
Gets the maximum number of packets that can be queued at any given point in time.
Reimplemented from fm.liveswitch.DatagramSocket.
| int fm.liveswitch.UdpSocket.getReceiveBufferSize | ( | ) |
Gets the current receive buffer size.
Reimplemented from fm.liveswitch.DatagramSocket.
| int fm.liveswitch.UdpSocket.getSendBufferSize | ( | ) |
Gets the current send buffer size.
Reimplemented from fm.liveswitch.DatagramSocket.
| void fm.liveswitch.UdpSocket.receiveAsync | ( | final IAction3< DataBuffer, String, Integer > | onSuccess, |
| final IAction1< Exception > | onFailure | ||
| ) |
| Error fm.liveswitch.UdpSocket.send | ( | DataBuffer | buffer, |
| String | ipAddress, | ||
| int | port | ||
| ) |
|
static |
Set whether sockets will attempt to use DSCP.
Default is false. You must "opt-in".
|
static |
Sets the default socket receive buffer size.
Defaults to 65536. A negative value indicates that the receive buffer size will not be set.
| value | The default socket receive buffer size. |
|
static |
Sets the default socket send buffer size.
Defaults to 65536. A negative value indicates that the send buffer size will not be set.
| value | The default socket send buffer size. |
| void fm.liveswitch.UdpSocket.setMaxQueuedPackets | ( | int | value | ) |
Sets the maximum number of packets that can be queued at any given point in time.
Reimplemented from fm.liveswitch.DatagramSocket.