Linux Assemblycollection of fast libraries

Network system calls

Like most other Unix-based operating systems, Linux supports TCP/IP as its native network transport. Network system calls is the way to make communications between computes via different kind of network interfaces: wired and wireless devices, fiber channel and etc. Most of network operations are based on BSD sockets interface.

Sockets allow processes on different computers to exchange data through a network. Sockets can also be used as a communication tool for processes located on the same host computer; the X Window System graphic interface, for instance, uses a socket to allow client programs to exchange data with the X server.

Contents

Tip: For detailed information about each system call please read: Linux man pages

Socket operations

SyscallNumberDescription
SOCKET41Create an endpoint for communication
SOCKETPAIR53Create a pair of connected sockets
SETSOCKOPT54Set options on sockets
GETSOCKOPT55Get options on sockets
GETSOCKNAME51Get socket name
GETPEERNAME52Get name of connected peer socket
BIND49Bind a name to a socket
LISTEN50Listen for connections on a socket
ACCEPT43Accept a connection on a socket
ACCEPT4288Accept a connection on a socket
CONNECT42Initiate a connection on a socket
SHUTDOWN48Shut down part of a full-duplex connection

Send/Receive

SyscallNumberDescription
RECVFROM45Receive a message from a socket
RECVMSG47Receive a message from a socket
RECVMMSG299Receive multiple messages from a socket
SENDTO44Send a message on a socket
SENDMSG46Send a message on a socket
SENDMMSG307Send multiple messages on a socket

Naming

SyscallNumberDescription
SETHOSTNAME170Set hostname
SETDOMAINNAME171Set NIS domain name

Packet filtering

SyscallNumberDescription
BPF321Perform a command on an extended BPF map or program
Copyright 2012-2016 Jack Black. All rights reserved.