FMLiveSwitchManagedSocket Class Reference

A socket. More...

Instance Methods

(long long) - adapterSpeed
 Gets the adapter speed. More...
 
(bool) - bindWithIPAddress:port:addressInUse:
 Binds the socket to a local endpoint. More...
 
(void) - close
 Closes the socket. More...
 
(instancetype) - init
 
(bool) - ipv6
 Gets a value indicating whether the socket supports IPv6. More...
 
(bool) - isClosed
 Gets a value indicating whether this instance is closed. More...
 
(NSString *) - localIPAddress
 Gets the local IP address. More...
 
(int) - localPort
 Gets the local port. More...
 
(NSMutableArray *) - publicIPAddresses
 Gets the public IP addresses, if known. More...
 
(void) - setAdapterSpeed:
 Sets the adapter speed. More...
 
(void) - setPublicIPAddresses:
 Sets the public IP addresses, if known. More...
 

Class Methods

(FMLiveSwitchManagedSocket *) + managedSocket
 

Detailed Description

A socket.

Method Documentation

◆ adapterSpeed

- (long long) adapterSpeed

Gets the adapter speed.

◆ bindWithIPAddress:port:addressInUse:

- (bool) bindWithIPAddress: (NSString *)  ipAddress
port: (int)  port
addressInUse: (bool *)  addressInUse 

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.

Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.

◆ close

- (void) close

Closes the socket.

Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.

◆ init

- (instancetype) init

◆ ipv6

- (bool) ipv6

Gets a value indicating whether the socket supports IPv6.

Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.

◆ isClosed

- (bool) isClosed

Gets a value indicating whether this instance is closed.

Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.

◆ localIPAddress

- (NSString*) localIPAddress

Gets the local IP address.

Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.

◆ localPort

- (int) localPort

Gets the local port.

Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.

◆ managedSocket

+ (FMLiveSwitchManagedSocket*) managedSocket

◆ publicIPAddresses

- (NSMutableArray*) publicIPAddresses

Gets the public IP addresses, if known.

◆ setAdapterSpeed:

- (void) setAdapterSpeed: (long long)  value

Sets the adapter speed.

◆ setPublicIPAddresses:

- (void) setPublicIPAddresses: (NSMutableArray *)  value

Sets the public IP addresses, if known.