net_address v0.2.2 IP.SockAddr View Source
Tools for handling the t::socket.sockaddr_in4/0
type.
Unless you're using the :socket
library, for low level socket
access you probably won't need this module!
Support for inet6 forthcoming.
Link to this section Summary
Functions
Like from_string/1
, but returns an ok or error tuple on failure.
Creates an elixir struct, which is compatible with :socket
module's
sockaddr_in4 type.
converts a t::socket.sockaddr_in4
value to
Link to this section Types
Link to this section Functions
Like from_string/1
, but returns an ok or error tuple on failure.
Creates an elixir struct, which is compatible with :socket
module's
sockaddr_in4 type.
You may pass this, for example to :socket.bind/2
converts a t::socket.sockaddr_in4
value to
Compatible with sockaddr maps returned by the socket library, not
selective on the IP.SockAddr
struct.