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 |
A socket.
- (long long) adapterSpeed |
Gets the adapter speed.
- (bool) bindWithIPAddress: | (NSString *) | ipAddress | |
port: | (int) | port | |
addressInUse: | (bool *) | addressInUse | |
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. |
Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.
- (void) close |
Closes the socket.
Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.
- (instancetype) init |
Implemented in FMLiveSwitchStreamSocket, and FMLiveSwitchDatagramSocket.
- (bool) ipv6 |
Gets a value indicating whether the socket supports IPv6.
Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.
- (bool) isClosed |
Gets a value indicating whether this instance is closed.
Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.
- (NSString*) localIPAddress |
Gets the local IP address.
Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.
- (int) localPort |
Gets the local port.
Implemented in FMLiveSwitchVirtualUdpSocket, and FMLiveSwitchVirtualTcpSocket.
+ (FMLiveSwitchManagedSocket*) managedSocket |
- (NSMutableArray*) publicIPAddresses |
Gets the public IP addresses, if known.
- (void) setAdapterSpeed: | (long long) | value |
Sets the adapter speed.
- (void) setPublicIPAddresses: | (NSMutableArray *) | value |
Sets the public IP addresses, if known.