Lines Matching defs:sock
26 struct sock { struct
27 struct sock *next; argument
28 int fd;
29 struct file *file;
30 struct amsg rmsg, wmsg; /* messages being sent/received */
31 unsigned int wmax; /* max bytes we're allowed to write */
32 unsigned int rmax; /* max bytes we're allowed to read */
33 unsigned int rsize; /* input bytes to read (DATA msg) */
34 unsigned int wsize; /* output bytes to write (DATA msg) */
35 unsigned int rtodo; /* input bytes not read yet */
36 unsigned int wtodo; /* output bytes not written yet */
41 unsigned int rstate; /* state of the read-end FSM */
68 unsigned int sesrefs; /* 1 if socket belongs to a session */ argument
71 struct sock *sock_new(int fd); argument