GSMLG.Socket.Protocol protocol (GSMLG.Socket v0.1.0)
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
@type t() :: term()
Link to this section Functions
Link to this function
accept(self, options \\ [])
Accept a connection from the socket.
Link to this function
active(self)
Make the socket active.
Link to this function
active(self, mode)
Make the socket active once.
Link to this function
close(self)
Close the socket.
Link to this function
equal?(self, other)
Check the two sockets are the same.
Link to this function
local(self)
@spec local(t()) :: {:ok, {Socket.Address.t(), :inet.port_number()}} | {:error, term()}
Get the local address/port of the socket.
Link to this function
options(self, opts)
Set options for the socket.
Link to this function
packet(self, type)
Change the packet type of the socket.
Link to this function
passive(self)
Make the socket passive.
Link to this function
process(self, pid)
Change the controlling process of the socket.
Link to this function
remote(self)
@spec remote(t()) :: {:ok, {Socket.Address.t(), :inet.port_number()}} | {:error, term()}
Get the remote address/port of the socket.