The UNIX Operating System
TOP
UP
Ray Seyfarth
ORCA
Computer Science
COST
USM
Allocating a Socket
#include <lt>sys/types.h> #include <lt>sys/socket.h> int s; s = socket ( PF_INET, SOCK_STREAM, 0 );
Specifying PF_INET and SOCK_STREAM leaves the protocol parameter irrelevant
University of Southern Mississippi
Ray.Seyfarth@usm.edu
Updated 20:05 Jun 5, 2000