1*4892Swnj /* socket.h 4.5 81/11/14 */ 24658Swnj 34658Swnj /* 4*4892Swnj * Externally visible attributes of sockets. 54658Swnj */ 6*4892Swnj 7*4892Swnj /* 8*4892Swnj * Socket types. 9*4892Swnj * 10*4892Swnj * The kernel implement these abstract (session-layer) socket 11*4892Swnj * services, with extra protocol on top of network services 12*4892Swnj * if necessary. 13*4892Swnj */ 144812Swnj #define SOCK_STREAM 0 /* stream socket */ 154812Swnj #define SOCK_DGRAM 1 /* datagram socket */ 164812Swnj #define SOCK_RAW 2 /* raw-protocol interface */ 174812Swnj #define SOCK_RDM 3 /* reliably-delivered message */ 184658Swnj 194812Swnj /* 204812Swnj * Option flags per-socket. 214812Swnj */ 224812Swnj #define SO_DEBUG 0x01 /* turn on debugging info recording */ 23*4892Swnj #define SO_ACCEPTCONN 0x02 /* willing to accept connection */ 244812Swnj #define SO_NBIO 0x04 /* don't block on this socket */ 25*4892Swnj #define SO_INTNOTIFY 0x08 /* interrupt when data available */ 26*4892Swnj #define SO_NEWFDONCONN 0x10 /* give new fd's for each connect */ 27