Instance Methods | |
| (FMLiveSwitchStreamSocket *) | - accept |
| (void) | - acceptAsyncWithOnSuccess:onFailure:onSocket: |
| Accepts a new socket asynchronously. More... | |
| (void) | - acceptAsyncWithOnSuccessBlock:onFailureBlock:onSocketBlock: |
| Accepts a new socket asynchronously. More... | |
| (FMLiveSwitchStreamSocket *) | - acceptAsyncWithOnSuccessBlockAndOnFailureBlockAndOnSocketBlock |
| Accepts a new socket asynchronously. More... | |
| (FMLiveSwitchStreamSocket *) | - acceptWithTimeout: |
| (bool) | - bind |
| (bool) | - bindWithAddressInUse: |
| (bool) | - bindWithIPAddress: |
| (bool) | - bindWithIPAddress:addressInUse: |
| (bool) | - bindWithIPAddress:port: |
| (bool) | - bindWithIPAddress:port:addressInUse: |
| Binds the socket to a local endpoint. More... | |
| (bool) | - bindWithPort: |
| (bool) | - bindWithPort:addressInUse: |
| (void) | - close |
| Closes the socket. More... | |
| (void) | - connectAsyncWithHostname:ipAddress:port:timeout:onSuccess:onFailure: |
| Connects the socket asynchronously. More... | |
| (void) | - connectAsyncWithHostname:ipAddress:port:timeout:onSuccessBlock:onFailureBlock: |
| Connects the socket asynchronously. More... | |
| (NSException *, bool) | - connectAsyncWithHostnameAndIPAddressAndPortAndTimeoutAndOnSuccessBlockAndOnFailureBlock |
| Connects the socket asynchronously. More... | |
| (bool) | - connectWithHostname:ipAddress:port:timeout: |
| (NSString *) | - description |
| (instancetype) | - initWithAdapter:server:ipv6:secure: |
| (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 *) | - localHostname |
| (NSString *) | - localIPAddress |
| Gets the local IP address. More... | |
| (int) | - localPort |
| Gets the local port. More... | |
| (FMLiveSwitchVirtualPacket *) | - receive |
| (void) | - receiveAsyncWithTimeout: |
| Receives data asynchronously. More... | |
| (FMLiveSwitchVirtualPacket *) | - receiveWithTimeout: |
| (NSString *) | - remoteHostname |
| Gets the remote hostname. More... | |
| (NSString *) | - remoteIPAddress |
| Gets the remote IP address. More... | |
| (int) | - remotePort |
| Gets the remote port. More... | |
| (bool) | - secure |
| Gets a value indicating whether the socket is secure. More... | |
| (void) | - sendAsyncWithBuffer:timeout:onSuccess:onFailure: |
| Sends data asynchronously. More... | |
| (void) | - sendAsyncWithBuffer:timeout:onSuccessBlock:onFailureBlock: |
| Sends data asynchronously. More... | |
| (NSException *, bool) | - sendAsyncWithBufferAndTimeoutAndOnSuccessBlockAndOnFailureBlock |
| Sends data asynchronously. More... | |
| (int) | - sendDelay |
| (bool) | - sendWithBuffer: |
| Sends data synchronously. More... | |
| (bool) | - sendWithBuffer:timeout: |
| (bool) | - server |
| Gets a value indicating whether the socket can accept incoming connections. More... | |
| (void) | - setLocalHostname: |
| (void) | - setSendDelay: |
Instance Methods inherited from FMLiveSwitchStreamSocket | |
| (instancetype) | - init |
| (FMLiveSwitchAction2< NSException *, id > *) | - onReceiveFailure |
| Gets a callback invoked on failed read from TCP stream. More... | |
| (FMLiveSwitchAction1< FMLiveSwitchDataBuffer * > *) | - onReceiveSuccess |
| Gets a callback invoked on successful read from TCP stream. More... | |
| (void) | - raiseAcceptFailureWithCallback:exception: |
| Invokes the accept failure callback. More... | |
| (void) | - raiseAcceptFailureWithCallbackBlock:exception: |
| Invokes the accept failure callback. More... | |
| (NSException *) | - raiseAcceptFailureWithCallbackBlockAndException |
| Invokes the accept failure callback. More... | |
| (void) | - raiseAcceptSocketWithCallback:socket: |
| Invokes the accept success callback. More... | |
| (void) | - raiseAcceptSocketWithCallbackBlock:socket: |
| Invokes the accept success callback. More... | |
| (FMLiveSwitchStreamSocket *) | - raiseAcceptSocketWithCallbackBlockAndSocket |
| Invokes the accept success callback. More... | |
| (void) | - raiseAcceptSuccessWithCallback: |
| Invokes the accept success callback. More... | |
| (void) | - raiseConnectFailureWithCallback:exception:timedOut: |
| Invokes the connect failure callback. More... | |
| (void) | - raiseConnectFailureWithCallbackBlock:exception:timedOut: |
| Invokes the connect failure callback. More... | |
| (NSException *, bool) | - raiseConnectFailureWithCallbackBlockAndExceptionAndTimedOut |
| Invokes the connect failure callback. More... | |
| (void) | - raiseConnectSuccessWithCallback: |
| Invokes the connect success callback. More... | |
| (void) | - raiseReceiveFailureWithCallback:exception:timedOut: |
| Invokes the receive failure callback. More... | |
| (void) | - raiseReceiveFailureWithCallbackBlock:exception:timedOut: |
| Invokes the receive failure callback. More... | |
| (NSException *, bool) | - raiseReceiveFailureWithCallbackBlockAndExceptionAndTimedOut |
| Invokes the receive failure callback. More... | |
| (void) | - raiseReceiveSuccessWithCallback:buffer: |
| Invokes the receive success callback. More... | |
| (void) | - raiseReceiveSuccessWithCallbackBlock:buffer: |
| Invokes the receive success callback. More... | |
| (FMLiveSwitchDataBuffer *) | - raiseReceiveSuccessWithCallbackBlockAndBuffer |
| Invokes the receive success callback. More... | |
| (void) | - raiseSendFailureWithCallback:exception:timedOut: |
| Invokes the send failure callback. More... | |
| (void) | - raiseSendFailureWithCallbackBlock:exception:timedOut: |
| Invokes the send failure callback. More... | |
| (NSException *, bool) | - raiseSendFailureWithCallbackBlockAndExceptionAndTimedOut |
| Invokes the send failure callback. More... | |
| (void) | - raiseSendSuccessWithCallback: |
| Invokes the send success callback. More... | |
| (void) | - setOnReceiveFailure: |
| Sets a callback invoked on failed read from TCP stream. More... | |
| (NSException *, bool) | - setOnReceiveFailureBlock |
| Sets a callback invoked on failed read from TCP stream. More... | |
| (void) | - setOnReceiveFailureBlock: |
| Sets a callback invoked on failed read from TCP stream. More... | |
| (void) | - setOnReceiveSuccess: |
| Sets a callback invoked on successful read from TCP stream. More... | |
| (FMLiveSwitchDataBuffer *) | - setOnReceiveSuccessBlock |
| Sets a callback invoked on successful read from TCP stream. More... | |
| (void) | - setOnReceiveSuccessBlock: |
| Sets a callback invoked on successful read from TCP stream. More... | |
Instance Methods inherited from FMLiveSwitchManagedSocket | |
| (long long) | - adapterSpeed |
| Gets the adapter speed. 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 | |
| (FMLiveSwitchVirtualTcpSocket *) | + tcpSocketWithAdapter:server:ipv6:secure: |
Class Methods inherited from FMLiveSwitchStreamSocket | |
| (FMLiveSwitchStreamSocket *) | + streamSocket |
Class Methods inherited from FMLiveSwitchManagedSocket | |
| (FMLiveSwitchManagedSocket *) | + managedSocket |
| - (FMLiveSwitchStreamSocket*) accept |
| - (void) acceptAsyncWithOnSuccess: | (FMLiveSwitchAction0 *) | onSuccess | |
| onFailure: | (FMLiveSwitchAction1< NSException * > *) | onFailure | |
| onSocket: | (FMLiveSwitchAction1< FMLiveSwitchStreamSocket * > *) | onSocket | |
Accepts a new socket asynchronously.
| onSuccess | The callback to invoke on success. |
| onFailure | The callback to invoke on failure. |
| onSocket | The callback to invoke when a socket is ready. |
Implements FMLiveSwitchStreamSocket.
| - (void) acceptAsyncWithOnSuccessBlock: | (void(^)(void)) | onSuccessBlock | |
| onFailureBlock: | (void(^)(NSException *)) | onFailureBlock | |
| onSocketBlock: | (void(^)(FMLiveSwitchStreamSocket *)) | onSocketBlock | |
Accepts a new socket asynchronously.
| onSuccessBlock | The callback to invoke on success. |
| onFailureBlock | The callback to invoke on failure. |
| onSocketBlock | The callback to invoke when a socket is ready. |
Implements FMLiveSwitchStreamSocket.
| - (FMLiveSwitchStreamSocket*) acceptAsyncWithOnSuccessBlockAndOnFailureBlockAndOnSocketBlock |
Accepts a new socket asynchronously.
@inlineparam onSuccessBlock The callback to invoke on success. @inlineparam onFailureBlock The callback to invoke on failure. @inlineparam onSocketBlock The callback to invoke when a socket is ready.
Implements FMLiveSwitchStreamSocket.
| - (FMLiveSwitchStreamSocket*) acceptWithTimeout: | (int) | timeout |
| - (bool) bind |
| - (bool) bindWithAddressInUse: | (bool *) | addressInUse |
| - (bool) bindWithIPAddress: | (NSString *) | ipAddress |
| - (bool) bindWithIPAddress: | (NSString *) | ipAddress | |
| addressInUse: | (bool *) | addressInUse | |
| - (bool) bindWithIPAddress: | (NSString *) | ipAddress | |
| port: | (int) | port | |
| - (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. |
Implements FMLiveSwitchManagedSocket.
| - (bool) bindWithPort: | (int) | port |
| - (bool) bindWithPort: | (int) | port | |
| addressInUse: | (bool *) | addressInUse | |
| - (void) close |
Closes the socket.
Implements FMLiveSwitchManagedSocket.
| - (void) connectAsyncWithHostname: | (NSString *) | hostname | |
| ipAddress: | (NSString *) | ipAddress | |
| port: | (int) | port | |
| timeout: | (int) | timeout | |
| onSuccess: | (FMLiveSwitchAction0 *) | onSuccess | |
| onFailure: | (FMLiveSwitchAction2< NSException *, id > *) | onFailure | |
Connects the socket asynchronously.
| hostname | The remote hostname. |
| ipAddress | The remote IP address. |
| port | The remote port. |
| timeout | The timeout (in ms). |
| onSuccess | The callback to invoke on success. |
| onFailure | The callback to invoke on failure. |
Implements FMLiveSwitchStreamSocket.
| - (void) connectAsyncWithHostname: | (NSString *) | hostname | |
| ipAddress: | (NSString *) | ipAddress | |
| port: | (int) | port | |
| timeout: | (int) | timeout | |
| onSuccessBlock: | (void(^)(void)) | onSuccessBlock | |
| onFailureBlock: | (void(^)(NSException *, bool)) | onFailureBlock | |
Connects the socket asynchronously.
| hostname | The remote hostname. |
| ipAddress | The remote IP address. |
| port | The remote port. |
| timeout | The timeout (in ms). |
| onSuccessBlock | The callback to invoke on success. |
| onFailureBlock | The callback to invoke on failure. |
Implements FMLiveSwitchStreamSocket.
| - (NSException*, bool) connectAsyncWithHostnameAndIPAddressAndPortAndTimeoutAndOnSuccessBlockAndOnFailureBlock |
Connects the socket asynchronously.
@inlineparam hostname The remote hostname. @inlineparam ipAddress The remote IP address. @inlineparam port The remote port. @inlineparam timeout The timeout (in ms). @inlineparam onSuccessBlock The callback to invoke on success. @inlineparam onFailureBlock The callback to invoke on failure.
Implements FMLiveSwitchStreamSocket.
| - (bool) connectWithHostname: | (NSString *) | hostname | |
| ipAddress: | (NSString *) | ipAddress | |
| port: | (int) | port | |
| timeout: | (int) | timeout | |
| - (NSString*) description |
| - (instancetype) initWithAdapter: | (FMLiveSwitchVirtualAdapter *) | adapter | |
| server: | (bool) | server | |
| ipv6: | (bool) | ipv6 | |
| secure: | (bool) | secure | |
| - (bool) ipv6 |
Gets a value indicating whether the socket supports IPv6.
Implements FMLiveSwitchManagedSocket.
| - (bool) isClosed |
Gets a value indicating whether this instance is closed.
Implements FMLiveSwitchManagedSocket.
| - (NSString*) localHostname |
| - (NSString*) localIPAddress |
Gets the local IP address.
Implements FMLiveSwitchManagedSocket.
| - (int) localPort |
Gets the local port.
Implements FMLiveSwitchManagedSocket.
| - (FMLiveSwitchVirtualPacket*) receive |
| - (void) receiveAsyncWithTimeout: | (int) | timeout |
Receives data asynchronously.
| timeout | The timeout (in ms). |
Implements FMLiveSwitchStreamSocket.
| - (FMLiveSwitchVirtualPacket*) receiveWithTimeout: | (int) | timeout |
| - (NSString*) remoteHostname |
Gets the remote hostname.
Implements FMLiveSwitchStreamSocket.
| - (NSString*) remoteIPAddress |
Gets the remote IP address.
Implements FMLiveSwitchStreamSocket.
| - (int) remotePort |
Gets the remote port.
Implements FMLiveSwitchStreamSocket.
| - (bool) secure |
Gets a value indicating whether the socket is secure.
Implements FMLiveSwitchStreamSocket.
| - (void) sendAsyncWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| timeout: | (int) | timeout | |
| onSuccess: | (FMLiveSwitchAction0 *) | onSuccess | |
| onFailure: | (FMLiveSwitchAction2< NSException *, id > *) | onFailure | |
Sends data asynchronously.
| buffer | The buffer. |
| timeout | The timeout (in ms). |
| onSuccess | The callback to invoke on success. |
| onFailure | The callback to invoke on failure. |
Implements FMLiveSwitchStreamSocket.
| - (void) sendAsyncWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| timeout: | (int) | timeout | |
| onSuccessBlock: | (void(^)(void)) | onSuccessBlock | |
| onFailureBlock: | (void(^)(NSException *, bool)) | onFailureBlock | |
Sends data asynchronously.
| buffer | The buffer. |
| timeout | The timeout (in ms). |
| onSuccessBlock | The callback to invoke on success. |
| onFailureBlock | The callback to invoke on failure. |
Implements FMLiveSwitchStreamSocket.
| - (NSException*, bool) sendAsyncWithBufferAndTimeoutAndOnSuccessBlockAndOnFailureBlock |
Sends data asynchronously.
@inlineparam buffer The buffer. @inlineparam timeout The timeout (in ms). @inlineparam onSuccessBlock The callback to invoke on success. @inlineparam onFailureBlock The callback to invoke on failure.
Implements FMLiveSwitchStreamSocket.
| - (int) sendDelay |
| - (bool) sendWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
| - (bool) sendWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| timeout: | (int) | timeout | |
| - (bool) server |
Gets a value indicating whether the socket can accept incoming connections.
Implements FMLiveSwitchStreamSocket.
| - (void) setLocalHostname: | (NSString *) | value |
| - (void) setSendDelay: | (int) | value |
| + (FMLiveSwitchVirtualTcpSocket*) tcpSocketWithAdapter: | (FMLiveSwitchVirtualAdapter *) | adapter | |
| server: | (bool) | server | |
| ipv6: | (bool) | ipv6 | |
| secure: | (bool) | secure | |