A socket. More...
Public Member Functions | |
| 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 | |
| ManagedSocket () | |
A socket.
|
protected |
|
abstract |
Binds the socket to a local endpoint.
| ipAddress | The local IP address. |
| port | The local port. |
| addressInUse | Indicates that access to the address is forbidden or in use. |
|
abstract |
Closes the socket.
Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.
| long fm.liveswitch.ManagedSocket.getAdapterSpeed | ( | ) |
Gets the adapter speed.
|
abstract |
Gets a value indicating whether the socket supports IPv6.
Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.
|
abstract |
Gets a value indicating whether this instance is closed.
Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.
|
abstract |
Gets the local IP address.
Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.
|
abstract |
Gets the local port.
Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.
| String [] fm.liveswitch.ManagedSocket.getPublicIPAddresses | ( | ) |
Gets the public IP addresses, if known.
| void fm.liveswitch.ManagedSocket.setAdapterSpeed | ( | long | value | ) |
Sets the adapter speed.
| void fm.liveswitch.ManagedSocket.setPublicIPAddresses | ( | String[] | value | ) |
Sets the public IP addresses, if known.