socket v0.3.13 Socket.Protocol protocol
Link to this section Summary
Functions
Accept a connection from the socket
Make the socket active
Make the socket active once
Close the socket
Check the two sockets are the same
Get the local address/port of the socket
Set options for the socket
Change the packet type of the socket
Make the socket passive
Change the controlling process of the socket
Get the remote address/port of the socket
Link to this section Types
Link to this section Functions
Link to this function
accept(self, options \\ [])
Accept a connection from the socket.
Make the socket active.
Make the socket active once.
Close the socket.
Check the two sockets are the same.
Link to this function
local(self)
local(t()) :: {:ok, {Socket.Address.t(), :inet.port_number()}} | {:error, term()}
Get the local address/port of the socket.
Set options for the socket.
Change the packet type of the socket.
Make the socket passive.
Change the controlling process of the socket.
Link to this function
remote(self)
remote(t()) :: {:ok, {Socket.Address.t(), :inet.port_number()}} | {:error, term()}
Get the remote address/port of the socket.