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 #include <linux/sockios.h>              /* the SIOCxxx I/O controls     */
   5 
   6 
   7 struct sockaddr {
   8   unsigned short        sa_family;      /* address family, AF_xxx       */
   9   char                  sa_data[14];    /* 14 bytes of protocol address */
  10 };
  11 
  12 /* Socket types. */
  13 #define SOCK_STREAM     1               /* stream (connection) socket   */
  14 #define SOCK_DGRAM      2               /* datagram (conn.less) socket  */
  15 #define SOCK_RAW        3               /* raw socket                   */
  16 #define SOCK_RDM        4               /* reliably-delivered message   */
  17 #define SOCK_SEQPACKET  5               /* sequential packet socket     */
  18 #define SOCK_PACKET     10              /* linux specific way of        */
  19                                         /* getting packets at the dev   */
  20                                         /* level.  For writing rarp and */
  21                                         /* other similiar things on the */
  22                                         /* user level.                  */
  23 
  24 /* Supported address families. */
  25 #define AF_UNSPEC       0
  26 #define AF_UNIX         1
  27 #define AF_INET         2
  28 
  29 /* Protocol families, same as address families. */
  30 #define PF_UNIX         AF_UNIX
  31 #define PF_INET         AF_INET
  32 
  33 /* Flags we can use with send/ and recv. */
  34 #define MSG_OOB         1
  35 #define MSG_PEEK        2
  36 
  37 /* Setsockoptions(2) level. */
  38 #define SOL_SOCKET      1
  39 
  40 /* For setsockoptions(2) */
  41 #define SO_DEBUG        1
  42 #define SO_REUSEADDR    2
  43 #define SO_TYPE         3
  44 #define SO_ERROR        4
  45 #define SO_DONTROUTE    5
  46 #define SO_BROADCAST    6
  47 #define SO_SNDBUF       7
  48 #define SO_RCVBUF       8
  49 #define SO_KEEPALIVE    9
  50 #define SO_OOBINLINE    10
  51 #define SO_NO_CHECK     11
  52 #define SO_PRIORITY     12
  53 #define SO_LINGER       13
  54 
  55 /* The various priorities. */
  56 #define SOPRI_INTERACTIVE       0
  57 #define SOPRI_NORMAL            1
  58 #define SOPRI_BACKGROUND        2
  59 
  60 #endif /* _LINUX_SOCKET_H */

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