Module nix::sys::socket

source ·
Expand description

Socket interface functions

Further reading

Modules§

  • Socket options as used by setsockopt and getsockopt.

Structs§

Enums§

Traits§

  • Represents a socket option that can be retrieved.
  • Represents a socket option that can be set.
  • Anything that, in C, can be cast back and forth to sockaddr.

Functions§

  • Accept a connection on a socket
  • Accept a connection on a socket
  • Bind a name to a socket
  • Initiate a connection on a socket
  • Get the address of the peer connected to the socket fd.
  • Get the current address to which the socket fd is bound.
  • Get the current value for the requested socket option
  • Listen for connections on a socket
  • Receive data from a connection-oriented socket. Returns the number of bytes read
  • Receive data from a connectionless or connection-oriented socket. Returns the number of bytes read and, for connectionless sockets, the socket address of the sender.
  • Send data to a connection-oriented socket. Returns the number of bytes read
  • Send a message to a socket
  • Sets the value for the requested socket option
  • Shut down part of a full-duplex connection.
  • Create an endpoint for communication
  • Create a pair of connected sockets

Type Aliases§

Unions§