Lines Matching refs:socket
17 * Our socket structure
20 struct socket {
21 struct socket *so_next,*so_prev; /* For a linked list of sockets */
23 int s; /* The actual socket */
39 u_int8_t so_emu; /* Is the socket emulated? */
41 u_char so_type; /* Type of socket, UDP or TCP */
45 u_int so_expire; /* When the socket will expire */
47 int so_queued; /* Number of packets queued from this socket */
73 #define SS_FACCEPTONCE 0x200 /* If set, the SS_FACCEPTCONN socket will die after one accept */
77 extern struct socket tcb;
80 struct socket * solookup _P((struct socket *, uint32_t, u_int, uint32_t, u_int));
81 struct socket * socreate _P((void));
82 void sofree _P((struct socket *));
83 int soread _P((struct socket *));
84 void sorecvoob _P((struct socket *));
85 int sosendoob _P((struct socket *));
86 int sowrite _P((struct socket *));
87 void sorecvfrom _P((struct socket *));
88 int sosendto _P((struct socket *, struct mbuf *));
89 struct socket * solisten _P((u_int, u_int32_t, u_int, int));
91 void soisfconnecting _P((register struct socket *));
92 void soisfconnected _P((register struct socket *));
93 void soisfdisconnected _P((struct socket *));
94 void sofwdrain _P((struct socket *));
96 size_t sopreprbuf(struct socket *so, struct iovec *iov, int *np);
97 int soreadbuf(struct socket *so, const char *buf, int size);