SOCKET(2)                  UNIX Programmer's Manual                  SOCKET(2)

NAME	socket - create an endpoint for communication

SYNOPSIS
      #include <sys/types.h>
      #include <sys/socket.h>

      s = socket(af, type, protocol)
      int s, af, type, protocol;

FORMATS
        AF_UNIX        (UNIX path names),
        AF_INET        (ARPA Internet addresses),
        AF_PUP         (Xerox PUP-I Internet addresses)
        AF_IMPLINK     (IMP "host at IMP" addresses)

SOCKET TYPES

	SOCK_STREAM
		sequenced, reliable, two-way connection based byte streams
		with an out-of-band data transmission mechanism.
	SOCK_DGRAM
		datagrams: connectionless, unreliable messages
		of a fixed (typically small) maximum length
	SOCK_RAW
		internal network interfaces,
		available only to the super-user
	SOCK_SEQPACKET
	SOCK_RDM      
		Planned, but not yet implemented


PROTOCOLS - see services(3N), protocols(3N)
	SOCK_STREAM	full-duplex byte streams, similar to pipes
	connect; [{read,write}/{send,recv}]* ; close

	connect
