C

From 太極
Revision as of 21:12, 23 June 2019 by Brb (talk | contribs) (Replaced content with "= Socket Programming = * [http://beej.us/guide/bgnet/ Beej's Guide to Network Programming] * [http://alas.matf.bg.ac.rs/manuals/lspe/0789722410 Linux Socket Programming...")
Jump to navigation Jump to search

Socket Programming

Terms

There are two types of address domains.

  • AF_UNIX: the unix domain for two processes which share a common file system, and
  • AF_INET: the Internet domain for any two hosts on the Internet.

There are two types of sockets.

  • a stream socket in which characters are read in a continuous stream as if from a file or pipe, and
  • a datagram socket, in which messages are read in chunks.

The two symbolic constants are SOCK_STREAM and SOCK_DGRAM.

There are two types of ports: