FMLiveSwitchTurnTcpConnection Class Reference

Instance Methods

(FMLiveSwitchTransportAddress *) - clientAddress
 
(void) - close
 
(NSString *) - id
 
(instancetype) - initWithSocket:onReceive:
 
(instancetype) - initWithSocket:onReceiveBlock:
 
(bool) - isClosed
 
(FMLiveSwitchAction1< FMLiveSwitchTurnTcpConnection * > *) - onClose
 
(FMLiveSwitchServerAddress *) - serverAddress
 
(void) - setOnClose:
 
(FMLiveSwitchTurnTcpConnection *) - setOnCloseBlock
 
(void) - setOnCloseBlock:
 
(FMLiveSwitchStreamSocket *) - socket
 
(void) - startListening
 
- Instance Methods inherited from FMLiveSwitchDynamic
(NSMutableDictionary< NSString *, id > *) - dynamicProperties
 Gets all dynamic properties on this instance. More...
 
(id- getDynamicValueWithKey:
 Gets a property value from the local cache. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchSerializable class. More...
 
(void) - setDynamicValueWithKey:value:
 Sets a property value in the local cache. More...
 
(bool) - unsetDynamicValueWithKey:
 Removes a property value from the local cache. More...
 

Class Methods

(FMLiveSwitchTurnTcpConnection *) + tcpConnectionWithSocket:onReceive:
 
(FMLiveSwitchTurnTcpConnection *) + tcpConnectionWithSocket:onReceiveBlock:
 
- Class Methods inherited from FMLiveSwitchDynamic
(FMLiveSwitchDynamic *) + dynamic
 
- Class Methods inherited from FMLiveSwitchSerializable
(FMLiveSwitchSerializable *) + serializable
 Initializes a new instance of the FMLiveSwitchSerializable class. More...
 

Method Documentation

◆ clientAddress

- (FMLiveSwitchTransportAddress*) clientAddress

◆ close

- (void) close

◆ id

- (NSString*) id

◆ initWithSocket:onReceive:

- (instancetype) initWithSocket: (FMLiveSwitchStreamSocket *)  socket
onReceive: (FMLiveSwitchAction2< FMLiveSwitchTurnTcpConnection *, FMLiveSwitchCircularDataBuffer * > *)  onReceive 

◆ initWithSocket:onReceiveBlock:

- (instancetype) initWithSocket: (FMLiveSwitchStreamSocket *)  socket
onReceiveBlock: (void(^)(FMLiveSwitchTurnTcpConnection *, FMLiveSwitchCircularDataBuffer *))  onReceiveBlock 

◆ isClosed

- (bool) isClosed

◆ onClose

- (FMLiveSwitchAction1<FMLiveSwitchTurnTcpConnection*>*) onClose

◆ serverAddress

- (FMLiveSwitchServerAddress*) serverAddress

◆ setOnClose:

- (void) setOnClose: (FMLiveSwitchAction1< FMLiveSwitchTurnTcpConnection * > *)  value

◆ setOnCloseBlock

- (FMLiveSwitchTurnTcpConnection*) setOnCloseBlock

◆ setOnCloseBlock:

- (void) setOnCloseBlock: (void(^)(FMLiveSwitchTurnTcpConnection *))  valueBlock

◆ socket

◆ startListening

- (void) startListening

◆ tcpConnectionWithSocket:onReceive:

+ (FMLiveSwitchTurnTcpConnection*) tcpConnectionWithSocket: (FMLiveSwitchStreamSocket *)  socket
onReceive: (FMLiveSwitchAction2< FMLiveSwitchTurnTcpConnection *, FMLiveSwitchCircularDataBuffer * > *)  onReceive 

◆ tcpConnectionWithSocket:onReceiveBlock:

+ (FMLiveSwitchTurnTcpConnection*) tcpConnectionWithSocket: (FMLiveSwitchStreamSocket *)  socket
onReceiveBlock: (void(^)(FMLiveSwitchTurnTcpConnection *, FMLiveSwitchCircularDataBuffer *))  onReceiveBlock