root/include/linux/socket.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _LINUX_SOCKET_H
   2 #define _LINUX_SOCKET_H
   3 
   4 struct sockaddr {
   5         u_short sa_family;              /* address family, AF_xxx */
   6         char sa_data[14];               /* 14 bytes of protocol address */
   7 };
   8 
   9 /*
  10  * socket types
  11  */
  12 #define SOCK_STREAM     1               /* stream (connection) socket */
  13 #define SOCK_DGRAM      2               /* datagram (connectionless) socket */
  14 #define SOCK_SEQPACKET  3               /* sequential packet socket */
  15 #define SOCK_RAW        4               /* raw socket */
  16 
  17 /*
  18  * supported address families
  19  */
  20 #define AF_UNSPEC       0
  21 #define AF_UNIX         1
  22 #define AF_INET         2
  23 
  24 /*
  25  * protocol families, same as address families
  26  */
  27 #define PF_UNIX         AF_UNIX
  28 #define PF_INET         AF_INET
  29 
  30 #endif

/* [previous][next][first][last][top][bottom][index][help] */