Module nix::sys::socket
[−]
[src]
Socket interface functions
Modules
sockopt |
Structs
Ipv4Addr | |
Ipv6Addr | |
SockFlag | |
UnixAddr | |
in6_addr | |
in_addr | |
ip_mreq | |
linger | |
sockaddr | |
sockaddr_in | |
sockaddr_in6 | |
sockaddr_storage | |
sockaddr_un |
Enums
AddressFamily | |
InetAddr | |
IpAddr | |
SockAddr |
Represents a socket address |
SockLevel |
The protocol level at which to get / set socket options. Used as an
argument to |
SockType |
Constants
Traits
SockOpt |
Represents a socket option that can be accessed or set. Used as an argument
to |
Functions
accept |
Accept a connection on a socket |
accept4 |
Accept a connection on a socket |
bind |
Bind a name to a socket |
connect |
Initiate a connection on a socket |
getpeername |
Get the address of the peer connected to the socket |
getsockname |
Get the current address to which the socket |
getsockopt |
Get the current value for the requested socket option |
listen |
Listen for connections on a socket |
recvfrom |
Receive data from a connectionless or connection-oriented socket. Returns the number of bytes read and the socket address of the sender. |
sendto | |
setsockopt |
Sets the value for the requested socket option |
sockaddr_storage_to_addr | |
socket |
Create an endpoint for communication |
socketpair |
Create a pair of connected sockets |
Type Definitions
InAddrT | |
IpMulticastTtl | |
SockMessageFlags | |
sa_family_t |