Lines Matching refs:socket

29  *	@(#)socket.h	8.4 (Berkeley) 2/21/94
90 #define SOCK_STREAM 1 /* stream socket */
91 #define SOCK_DGRAM 2 /* datagram socket */
99 * Option flags per-socket.
102 #define SO_ACCEPTCONN 0x0002 /* socket has had listen() */
119 #define SO_NO_OFFLOAD 0x4000 /* socket cannot be offloaded */
132 #define SO_TYPE 0x1008 /* get socket type */
134 #define SO_LABEL 0x1009 /* socket's MAC label */
135 #define SO_PEERLABEL 0x1010 /* socket's peer's MAC label */
136 #define SO_LISTENQLIMIT 0x1011 /* socket's backlog limit */
137 #define SO_LISTENQLEN 0x1012 /* socket's complete queue length */
138 #define SO_LISTENINCQLEN 0x1013 /* socket's incomplete queue length */
141 #define SO_PROTOCOL 0x1016 /* get socket protocol (Linux name) */
146 * Space reserved for new socket options added by third-party vendors.
147 * This range applies to all socket option levels. New socket options
170 * Level number for (get/set)sockopt() to apply to socket itself.
172 #define SOL_SOCKET 0xffff /* options for socket level */
458 #define MSG_SOCALLBCK 0x10000 /* for use by socket callbacks - soreceive (TCP) */
642 int socket(int, int, int);
649 struct socket;
651 struct tcpcb *so_sototcpcb(struct socket *so);
652 struct inpcb *so_sotoinpcb(struct socket *so);
653 struct sockbuf *so_sockbuf_snd(struct socket *);
654 struct sockbuf *so_sockbuf_rcv(struct socket *);
656 int so_state_get(const struct socket *);
657 void so_state_set(struct socket *, int);
659 int so_options_get(const struct socket *);
660 void so_options_set(struct socket *, int);
662 int so_error_get(const struct socket *);
663 void so_error_set(struct socket *, int);
665 int so_linger_get(const struct socket *);
666 void so_linger_set(struct socket *, int);
668 struct protosw *so_protosw_get(const struct socket *);
669 void so_protosw_set(struct socket *, struct protosw *);
671 void so_sorwakeup_locked(struct socket *so);
672 void so_sowwakeup_locked(struct socket *so);
674 void so_sorwakeup(struct socket *so);
675 void so_sowwakeup(struct socket *so);
677 void so_lock(struct socket *so);
678 void so_unlock(struct socket *so);
680 void so_listeners_apply_all(struct socket *so, void (*func)(struct socket *, void *), void *arg);