A STUN server. More...
Instance Methods | |
| (FMLiveSwitchFunction1< FMLiveSwitchDatagramSocketCreateArgs *, FMLiveSwitchDatagramSocket * > *) | - createDatagramSocket |
| Gets the create callback to create a datagram socket. More... | |
| (FMLiveSwitchStunMessage *) | - createErrorResponseWithRequest:remoteAddress:errorMessage: |
| Creates an error response with a ganeric Stun server error. More... | |
| (FMLiveSwitchStunMessage *) | - createExceptionResponseWithRequest:remoteAddress:error: |
| Creates an exception response. More... | |
| (FMLiveSwitchFunction1< FMLiveSwitchStreamSocketCreateArgs *, FMLiveSwitchStreamSocket * > *) | - createStreamSocket |
| Gets the create callback to create a stream socket. More... | |
| (bool) | - disableTcp |
| Gets whether to prevent the server from listening for TCP requests. More... | |
| (bool) | - disableTls |
| Gets whether to prevent the server from listening for TLS requests. More... | |
| (bool) | - disableUdp |
| Gets whether to prevent the server from listening for UDP requests. More... | |
| (NSString *) | - getPrefixWithUdp:secure: |
| Gets a prefix. More... | |
| (instancetype) | - init |
| Initializes a new instance of the FMLiveSwitchSerializable class. More... | |
| (NSString *) | - label |
| Gets the label. More... | |
| (FMLiveSwitchServerAddress *) | - localTcpAddress |
| Gets the local TCP address. More... | |
| (NSMutableArray *) | - localTcpAddresses |
| Gets the local TCP addresses. More... | |
| (FMLiveSwitchServerAddress *) | - localUdpAddress |
| Gets the local UDP address. More... | |
| (NSMutableArray *) | - localUdpAddresses |
| Gets the local UDP addresses. More... | |
| (bool) | - processBuffer:udpServerSocket:tcpServerSocket:localAddress:remoteAddress:readLength: |
| Processes the buffer. More... | |
| (FMLiveSwitchStunMessage *) | - processWithRequest:udpServerSocket:tcpServerSocket:localAddress:remoteAddress: |
| Processes the specified request. More... | |
| (void) | - setCreateDatagramSocket: |
| Sets the create callback to create a datagram socket. More... | |
| (FMLiveSwitchDatagramSocketCreateArgs *) | - setCreateDatagramSocketBlock |
| Sets the create callback to create a datagram socket. More... | |
| (void) | - setCreateDatagramSocketBlock: |
| Sets the create callback to create a datagram socket. More... | |
| (void) | - setCreateStreamSocket: |
| Sets the create callback to create a stream socket. More... | |
| (FMLiveSwitchStreamSocketCreateArgs *) | - setCreateStreamSocketBlock |
| Sets the create callback to create a stream socket. More... | |
| (void) | - setCreateStreamSocketBlock: |
| Sets the create callback to create a stream socket. More... | |
| (void) | - setDisableTcp: |
| Sets whether to prevent the server from listening for TCP requests. More... | |
| (void) | - setDisableTls: |
| Sets whether to prevent the server from listening for TLS requests. More... | |
| (void) | - setDisableUdp: |
| Sets whether to prevent the server from listening for UDP requests. More... | |
| (void) | - setStreamSendTimeout: |
| Sets timeout for asynchronous data sending over stream sockets in ms. More... | |
| (bool) | - start |
| Starts the server. More... | |
| (bool) | - startWithUdpAddresses: |
| Starts the server. More... | |
| (bool) | - startWithUdpAddresses:tcpAddresses: |
| Starts the server. More... | |
| (bool) | - startWithUdpAddresses:tcpAddresses:tlsAddresses: |
| Starts the server. More... | |
| (bool) | - stop |
| Stops the server. More... | |
| (int) | - streamSendTimeout |
| Gets timeout for asynchronous data sending over stream sockets in ms. More... | |
| (NSMutableArray *) | - tcpAddresses |
| Gets the TCP server addresses. More... | |
| (NSMutableArray *) | - tlsAddresses |
| Gets the TLS server addresses. More... | |
| (NSMutableArray *) | - udpAddresses |
| Gets the UDP server addresses. More... | |
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... | |
| (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 | |
| (FMLiveSwitchStunServer *) | + stunServer |
Class Methods inherited from FMLiveSwitchDynamic | |
| (FMLiveSwitchDynamic *) | + dynamic |
Class Methods inherited from FMLiveSwitchSerializable | |
| (FMLiveSwitchSerializable *) | + serializable |
| Initializes a new instance of the FMLiveSwitchSerializable class. More... | |
A STUN server.
| - (FMLiveSwitchFunction1<FMLiveSwitchDatagramSocketCreateArgs*,FMLiveSwitchDatagramSocket*>*) createDatagramSocket |
Gets the create callback to create a datagram socket.
| - (FMLiveSwitchStunMessage*) createErrorResponseWithRequest: | (FMLiveSwitchStunMessage *) | request | |
| remoteAddress: | (FMLiveSwitchTransportAddress *) | remoteAddress | |
| errorMessage: | (NSString *) | errorMessage | |
Creates an error response with a ganeric Stun server error.
| request | The request. |
| remoteAddress | The remote address. |
| errorMessage | The erro messager. |
| - (FMLiveSwitchStunMessage*) createExceptionResponseWithRequest: | (FMLiveSwitchStunMessage *) | request | |
| remoteAddress: | (FMLiveSwitchTransportAddress *) | remoteAddress | |
| error: | (FMLiveSwitchStunError *) | error | |
Creates an exception response.
| request | The request. |
| remoteAddress | The remote address. |
| error | The Stun error. |
Implemented in FMLiveSwitchTurnServer.
| - (FMLiveSwitchFunction1<FMLiveSwitchStreamSocketCreateArgs*,FMLiveSwitchStreamSocket*>*) createStreamSocket |
Gets the create callback to create a stream socket.
| - (bool) disableTcp |
Gets whether to prevent the server from listening for TCP requests.
| - (bool) disableTls |
Gets whether to prevent the server from listening for TLS requests.
| - (bool) disableUdp |
Gets whether to prevent the server from listening for UDP requests.
| - (NSString*) getPrefixWithUdp: | (bool) | udp | |
| secure: | (bool) | secure | |
Gets a prefix.
| - (instancetype) init |
Initializes a new instance of the FMLiveSwitchSerializable class.
Implements FMLiveSwitchDynamic.
| - (NSString*) label |
Gets the label.
Implemented in FMLiveSwitchTurnServer.
| - (FMLiveSwitchServerAddress*) localTcpAddress |
Gets the local TCP address.
| - (NSMutableArray*) localTcpAddresses |
Gets the local TCP addresses.
| - (FMLiveSwitchServerAddress*) localUdpAddress |
Gets the local UDP address.
| - (NSMutableArray*) localUdpAddresses |
Gets the local UDP addresses.
| - (bool) processBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| udpServerSocket: | (FMLiveSwitchDatagramSocket *) | udpServerSocket | |
| tcpServerSocket: | (FMLiveSwitchStreamSocket *) | tcpServerSocket | |
| localAddress: | (FMLiveSwitchServerAddress *) | localAddress | |
| remoteAddress: | (FMLiveSwitchTransportAddress *) | remoteAddress | |
| readLength: | (int *) | readLength | |
Processes the buffer.
| buffer | The buffer. |
| udpServerSocket | The UDP server socket. |
| tcpServerSocket | The TCP server socket. |
| localAddress | The local address. |
| remoteAddress | The remote address. |
| readLength | Length of the read. |
Implemented in FMLiveSwitchTurnServer.
| - (FMLiveSwitchStunMessage*) processWithRequest: | (FMLiveSwitchStunMessage *) | request | |
| udpServerSocket: | (FMLiveSwitchDatagramSocket *) | udpServerSocket | |
| tcpServerSocket: | (FMLiveSwitchStreamSocket *) | tcpServerSocket | |
| localAddress: | (FMLiveSwitchServerAddress *) | localAddress | |
| remoteAddress: | (FMLiveSwitchTransportAddress *) | remoteAddress | |
Processes the specified request.
| request | The request. |
| udpServerSocket | The UDP server socket. |
| tcpServerSocket | The TCP server socket. |
| localAddress | The local address. |
| remoteAddress | The remote address. |
Implemented in FMLiveSwitchTurnServer.
| - (void) setCreateDatagramSocket: | (FMLiveSwitchFunction1< FMLiveSwitchDatagramSocketCreateArgs *, FMLiveSwitchDatagramSocket * > *) | value |
Sets the create callback to create a datagram socket.
| - (FMLiveSwitchDatagramSocketCreateArgs*) setCreateDatagramSocketBlock |
Sets the create callback to create a datagram socket.
| - (void) setCreateDatagramSocketBlock: | (FMLiveSwitchDatagramSocket *(^)(FMLiveSwitchDatagramSocketCreateArgs *)) | valueBlock |
Sets the create callback to create a datagram socket.
| - (void) setCreateStreamSocket: | (FMLiveSwitchFunction1< FMLiveSwitchStreamSocketCreateArgs *, FMLiveSwitchStreamSocket * > *) | value |
Sets the create callback to create a stream socket.
| - (FMLiveSwitchStreamSocketCreateArgs*) setCreateStreamSocketBlock |
Sets the create callback to create a stream socket.
| - (void) setCreateStreamSocketBlock: | (FMLiveSwitchStreamSocket *(^)(FMLiveSwitchStreamSocketCreateArgs *)) | valueBlock |
Sets the create callback to create a stream socket.
| - (void) setDisableTcp: | (bool) | value |
Sets whether to prevent the server from listening for TCP requests.
| - (void) setDisableTls: | (bool) | value |
Sets whether to prevent the server from listening for TLS requests.
| - (void) setDisableUdp: | (bool) | value |
Sets whether to prevent the server from listening for UDP requests.
| - (void) setStreamSendTimeout: | (int) | value |
Sets timeout for asynchronous data sending over stream sockets in ms.
Defaults to unset.
| - (bool) start |
Starts the server.
| - (bool) startWithUdpAddresses: | (NSMutableArray *) | udpAddresses |
Starts the server.
| udpAddresses | The UDP addresses to listen on. |
| - (bool) startWithUdpAddresses: | (NSMutableArray *) | udpAddresses | |
| tcpAddresses: | (NSMutableArray *) | tcpAddresses | |
Starts the server.
| udpAddresses | The UDP addresses to listen on. |
| tcpAddresses | The TCP addresses to listen on. |
| - (bool) startWithUdpAddresses: | (NSMutableArray *) | udpAddresses | |
| tcpAddresses: | (NSMutableArray *) | tcpAddresses | |
| tlsAddresses: | (NSMutableArray *) | tlsAddresses | |
Starts the server.
| udpAddresses | The UDP addresses to listen on. |
| tcpAddresses | The TCP addresses to listen on. |
| tlsAddresses | The TLS addresses to listen on. |
Implemented in FMLiveSwitchTurnServer.
| - (bool) stop |
Stops the server.
Implemented in FMLiveSwitchTurnServer.
| - (int) streamSendTimeout |
Gets timeout for asynchronous data sending over stream sockets in ms.
Defaults to unset.
| + (FMLiveSwitchStunServer*) stunServer |
| - (NSMutableArray*) tcpAddresses |
Gets the TCP server addresses.
| - (NSMutableArray*) tlsAddresses |
Gets the TLS server addresses.
| - (NSMutableArray*) udpAddresses |
Gets the UDP server addresses.