FMIceLinkVirtualTcpSocket Class Reference
Inherits from | FMIceLinkStreamSocket : FMIceLinkManagedSocket : NSObject |
---|---|
Declared in | FMIceLinkVirtualTcpSocket.h FMIceLinkVirtualTcpSocket.m |
– acceptAsyncWithOnSuccess:onFailure:onSocket:
- (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
Declared In
FMIceLinkStreamSocket.h
– acceptAsyncWithOnSuccessBlock:onFailureBlock:onSocketBlock:
- (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
Declared In
FMIceLinkStreamSocket.h
– acceptAsyncWithOnSuccessBlockAndOnFailureBlockAndOnSocketBlock
@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
@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:
- (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
Declared In
FMIceLinkManagedSocket.h
– close
- (void)close
Discussion
Declared In
FMIceLinkManagedSocket.h
– connectAsyncWithHostname:ipAddress:port:timeout:onSuccess:onFailure:
- (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
Declared In
FMIceLinkStreamSocket.h
– connectAsyncWithHostname:ipAddress:port:timeout:onSuccessBlock:onFailureBlock:
- (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
Declared In
FMIceLinkStreamSocket.h
– connectAsyncWithHostnameAndIPAddressAndPortAndTimeoutAndOnSuccessBlockAndOnFailureBlock
@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
@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
- (bool)ipv6
Discussion
Declared In
FMIceLinkManagedSocket.h
– isClosed
- (bool)isClosed
Discussion
Declared In
FMIceLinkManagedSocket.h
– localIPAddress
- (NSString *)localIPAddress
Discussion
Declared In
FMIceLinkManagedSocket.h
– localPort
- (int)localPort
Discussion
Declared In
FMIceLinkManagedSocket.h
– receiveAsyncWithTimeout:
- (void)receiveAsyncWithTimeout:(int)timeout
Parameters
timeout |
The timeout (in ms). |
---|
Discussion
Declared In
FMIceLinkStreamSocket.h
– remoteHostname
- (NSString *)remoteHostname
Discussion
Declared In
FMIceLinkStreamSocket.h
– remoteIPAddress
- (NSString *)remoteIPAddress
Discussion
Declared In
FMIceLinkStreamSocket.h
– remotePort
- (int)remotePort
Discussion
Declared In
FMIceLinkStreamSocket.h
– secure
- (bool)secure
Discussion
Declared In
FMIceLinkStreamSocket.h
– sendAsyncWithBuffer:timeout:onSuccess:onFailure:
- (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
Declared In
FMIceLinkStreamSocket.h
– sendAsyncWithBuffer:timeout:onSuccessBlock:onFailureBlock:
- (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
Declared In
FMIceLinkStreamSocket.h
– sendAsyncWithBufferAndTimeoutAndOnSuccessBlockAndOnFailureBlock
@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
@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:
- (bool)sendWithBuffer:(FMIceLinkDataBuffer *)buffer
Parameters
buffer |
The buffer. |
---|
Discussion
Declared In
FMIceLinkStreamSocket.h
– server
- (bool)server
Discussion
Declared In
FMIceLinkStreamSocket.h