fm.liveswitch.ManagedSocket Class Referenceabstract

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 ()
 

Detailed Description

A socket.

Constructor & Destructor Documentation

◆ ManagedSocket()

fm.liveswitch.ManagedSocket.ManagedSocket ( )
protected

Member Function Documentation

◆ bind()

abstract boolean fm.liveswitch.ManagedSocket.bind ( String  ipAddress,
int  port,
fm.liveswitch.BooleanHolder  addressInUse 
)
abstract

Binds the socket to a local endpoint.

Parameters
ipAddressThe local IP address.
portThe local port.
addressInUseIndicates that access to the address is forbidden or in use.

◆ close()

abstract void fm.liveswitch.ManagedSocket.close ( )
abstract

Closes the socket.

Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.

◆ getAdapterSpeed()

long fm.liveswitch.ManagedSocket.getAdapterSpeed ( )

Gets the adapter speed.

◆ getIPv6()

abstract boolean fm.liveswitch.ManagedSocket.getIPv6 ( )
abstract

Gets a value indicating whether the socket supports IPv6.

Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.

◆ getIsClosed()

abstract boolean fm.liveswitch.ManagedSocket.getIsClosed ( )
abstract

Gets a value indicating whether this instance is closed.

Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.

◆ getLocalIPAddress()

abstract String fm.liveswitch.ManagedSocket.getLocalIPAddress ( )
abstract

Gets the local IP address.

Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.

◆ getLocalPort()

abstract int fm.liveswitch.ManagedSocket.getLocalPort ( )
abstract

Gets the local port.

Reimplemented in fm.liveswitch.UdpSocket, and fm.liveswitch.TcpSocket.

◆ getPublicIPAddresses()

String [] fm.liveswitch.ManagedSocket.getPublicIPAddresses ( )

Gets the public IP addresses, if known.

◆ setAdapterSpeed()

void fm.liveswitch.ManagedSocket.setAdapterSpeed ( long  value)

Sets the adapter speed.

◆ setPublicIPAddresses()

void fm.liveswitch.ManagedSocket.setPublicIPAddresses ( String[]  value)

Sets the public IP addresses, if known.