xturn_sockets v0.1.1 Xirsys.Sockets.Socket View Source
Socket protocol helpers
Link to this section Summary
Functions
Returns the client message hooks from config
Closes a socket of any type.s
Performs the SSL/TLS/DTLS server-side handshake if a secure socket, otherwise simply accepts an incoming connection request on a listening socket.
Opens a new port for UDP TURN transport
Returns the peer message hooks from config
Returns the peer address and port number for a socket.
With new data, see if we can process a message on the buffer
Sends a message over an open udp socket port
Sends data to client hooks
Sends data to peer hooks
Returns the server ip from config for packet use
Returns the servers local ip from the config
Apply specific socket option for STUN connection
Sets one or more options for a socket.
Returns the local address and port number for a socket.
Link to this section Types
Link to this section Functions
Returns the client message hooks from config
close(sock, reason \\ "")
View Sourceclose(Xirsys.Sockets.Socket.t() | any(), any()) :: :ok
Closes a socket of any type.s
Performs the SSL/TLS/DTLS server-side handshake if a secure socket, otherwise simply accepts an incoming connection request on a listening socket.
open_turn_port(sip, policy, opts)
View Sourceopen_turn_port(tuple(), atom(), list()) :: {:ok, Xirsys.Sockets.Socket.t()} | {:error, atom()}
Opens a new port for UDP TURN transport
Returns the peer message hooks from config
Returns the peer address and port number for a socket.
With new data, see if we can process a message on the buffer
Sends a message over an open udp socket port
Sends data to client hooks
Sends data to peer hooks
Returns the server ip from config for packet use
Returns the servers local ip from the config
Apply specific socket option for STUN connection
Sets one or more options for a socket.
Returns the local address and port number for a socket.