FMIceLinkVirtualTcpSocket Class Reference

Inherits from FMIceLinkStreamSocket : FMIceLinkManagedSocket : NSObject
Declared in FMIceLinkVirtualTcpSocket.h
FMIceLinkVirtualTcpSocket.m

– acceptAsyncWithOnSuccess:onFailure:onSocket:

Accepts a new socket asynchronously.
- (void)acceptAsyncWithOnSuccess:(FMIceLinkAction0 *)onSuccess onFailure:(FMIceLinkAction1<NSException*> *)onFailure onSocket:(FMIceLinkAction1<FMIceLinkStreamSocket*> *)onSocket

Parameters

onSuccess

The callback to invoke on success.

onFailure

The callback to invoke on failure.

onSocket

The callback to invoke when a socket is ready.

Discussion

Accepts a new socket asynchronously.

Declared In

FMIceLinkStreamSocket.h

– acceptAsyncWithOnSuccessBlock:onFailureBlock:onSocketBlock:

Accepts a new socket asynchronously.
- (void)acceptAsyncWithOnSuccessBlock:(void ( ^ ) ( ))onSuccessBlock onFailureBlock:(void ( ^ ) ( NSException *))onFailureBlock onSocketBlock:(void ( ^ ) ( FMIceLinkStreamSocket *))onSocketBlock

Parameters

onSuccessBlock

The callback to invoke on success.

onFailureBlock

The callback to invoke on failure.

onSocketBlock

The callback to invoke when a socket is ready.

Discussion

Accepts a new socket asynchronously.

Declared In

FMIceLinkStreamSocket.h

– 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.

- (void ( ^ ) ( void ( ^ ) ( ) , void ( ^ ) ( NSException *) , void ( ^ ) ( FMIceLinkStreamSocket *) ))acceptAsyncWithOnSuccessBlockAndOnFailureBlockAndOnSocketBlock

Discussion

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.

Declared In

FMIceLinkStreamSocket.h

– bindWithIPAddress:port:addressInUse:

Binds the socket to a local endpoint.
- (bool)bindWithIPAddress:(NSString *)ipAddress port:(int)port addressInUse:(bool *)addressInUse

Parameters

ipAddress

The local IP address.

port

The local port.

addressInUse

Indicates that access to the address is forbidden or in use.

Discussion

Binds the socket to a local endpoint.

Declared In

FMIceLinkManagedSocket.h

– close

Closes the socket.
- (void)close

Discussion

Closes the socket.

Declared In

FMIceLinkManagedSocket.h

– connectAsyncWithHostname:ipAddress:port:timeout:onSuccess:onFailure:

Connects the socket asynchronously.
- (void)connectAsyncWithHostname:(NSString *)hostname ipAddress:(NSString *)ipAddress port:(int)port timeout:(int)timeout onSuccess:(FMIceLinkAction0 *)onSuccess onFailure:(FMIceLinkAction2<NSException*,id> *)onFailure

Parameters

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.

Discussion

Connects the socket asynchronously.

Declared In

FMIceLinkStreamSocket.h

– connectAsyncWithHostname:ipAddress:port:timeout:onSuccessBlock:onFailureBlock:

Connects the socket asynchronously.
- (void)connectAsyncWithHostname:(NSString *)hostname ipAddress:(NSString *)ipAddress port:(int)port timeout:(int)timeout onSuccessBlock:(void ( ^ ) ( ))onSuccessBlock onFailureBlock:(void ( ^ ) ( NSException *, bool ))onFailureBlock

Parameters

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.

Discussion

Connects the socket asynchronously.

Declared In

FMIceLinkStreamSocket.h

– 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.

- (void ( ^ ) ( NSString *, NSString *, int , int , void ( ^ ) ( ) , void ( ^ ) ( NSException *, bool ) ))connectAsyncWithHostnameAndIPAddressAndPortAndTimeoutAndOnSuccessBlockAndOnFailureBlock

Discussion

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.

Declared In

FMIceLinkStreamSocket.h

– ipv6

Gets a value indicating whether the socket supports IPv6.
- (bool)ipv6

Discussion

Gets a value indicating whether the socket supports IPv6.

Declared In

FMIceLinkManagedSocket.h

– isClosed

Gets a value indicating whether this instance is closed.
- (bool)isClosed

Discussion

Gets a value indicating whether this instance is closed.

Declared In

FMIceLinkManagedSocket.h

– localIPAddress

Gets the local IP address.
- (NSString *)localIPAddress

Discussion

Gets the local IP address.

Declared In

FMIceLinkManagedSocket.h

– localPort

Gets the local port.
- (int)localPort

Discussion

Gets the local port.

Declared In

FMIceLinkManagedSocket.h

– receiveAsyncWithTimeout:

Receives data asynchronously.
- (void)receiveAsyncWithTimeout:(int)timeout

Parameters

timeout

The timeout (in ms).

Discussion

Receives data asynchronously.

Declared In

FMIceLinkStreamSocket.h

– remoteHostname

Gets the remote hostname.
- (NSString *)remoteHostname

Discussion

Gets the remote hostname.

Declared In

FMIceLinkStreamSocket.h

– remoteIPAddress

Gets the remote IP address.
- (NSString *)remoteIPAddress

Discussion

Gets the remote IP address.

Declared In

FMIceLinkStreamSocket.h

– remotePort

Gets the remote port.
- (int)remotePort

Discussion

Gets the remote port.

Declared In

FMIceLinkStreamSocket.h

– secure

Gets a value indicating whether the socket is secure.
- (bool)secure

Discussion

Gets a value indicating whether the socket is secure.

Declared In

FMIceLinkStreamSocket.h

– sendAsyncWithBuffer:timeout:onSuccess:onFailure:

Sends data asynchronously.
- (void)sendAsyncWithBuffer:(FMIceLinkDataBuffer *)buffer timeout:(int)timeout onSuccess:(FMIceLinkAction0 *)onSuccess onFailure:(FMIceLinkAction2<NSException*,id> *)onFailure

Parameters

buffer

The buffer.

timeout

The timeout (in ms).

onSuccess

The callback to invoke on success.

onFailure

The callback to invoke on failure.

Discussion

Sends data asynchronously.

Declared In

FMIceLinkStreamSocket.h

– sendAsyncWithBuffer:timeout:onSuccessBlock:onFailureBlock:

Sends data asynchronously.
- (void)sendAsyncWithBuffer:(FMIceLinkDataBuffer *)buffer timeout:(int)timeout onSuccessBlock:(void ( ^ ) ( ))onSuccessBlock onFailureBlock:(void ( ^ ) ( NSException *, bool ))onFailureBlock

Parameters

buffer

The buffer.

timeout

The timeout (in ms).

onSuccessBlock

The callback to invoke on success.

onFailureBlock

The callback to invoke on failure.

Discussion

Sends data asynchronously.

Declared In

FMIceLinkStreamSocket.h

– 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.

- (void ( ^ ) ( FMIceLinkDataBuffer *, int , void ( ^ ) ( ) , void ( ^ ) ( NSException *, bool ) ))sendAsyncWithBufferAndTimeoutAndOnSuccessBlockAndOnFailureBlock

Discussion

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.

Declared In

FMIceLinkStreamSocket.h

– sendWithBuffer:

Sends data synchronously.
- (bool)sendWithBuffer:(FMIceLinkDataBuffer *)buffer

Parameters

buffer

The buffer.

Discussion

Sends data synchronously.

Declared In

FMIceLinkStreamSocket.h

– server

Gets a value indicating whether the socket can accept incoming connections.
- (bool)server

Discussion

Gets a value indicating whether the socket can accept incoming connections.

Declared In

FMIceLinkStreamSocket.h