Lines Matching defs:sock

31 struct sock {  struct
32 sockid_t sock_id; /* socket identifier */ argument
33 unsigned char sock_events; /* pending events (SEV_) */ argument
34 unsigned char sock_flags; /* internal flags (SFL_) */ argument
35 unsigned char sock_domain; /* domain, address family (PF_, AF_) */ argument
36 int sock_type; /* type: stream, datagram.. (SOCK_) */ argument
37 int sock_err; /* pending error code < 0, 0 if none */ argument
38 unsigned int sock_opt; /* generic option flags (SO_) */ argument
39 clock_t sock_linger; /* SO_LINGER value, in ticks or time */ argument
40 clock_t sock_stimeo; /* SO_SNDTIMEO value, in clock ticks */ argument
41 clock_t sock_rtimeo; /* SO_RCVTIMEO value, in clock ticks */ argument
42 size_t sock_slowat; /* SO_SNDLOWAT value, in bytes */ argument
43 size_t sock_rlowat; /* SO_RCVLOWAT value, in bytes */ argument
44 const struct sockevent_ops *sock_ops; /* socket operations table */ argument
48 struct sockevent_proc *sock_proc; /* list of suspended calls */ argument
49 struct sockdriver_select sock_select; /* pending select query */ argument
50 unsigned int sock_selops; /* pending select operations, or 0 */ argument
113 #define sockevent_get_domain(sock) ((int)((sock)->sock_domain)) argument
114 #define sockevent_get_type(sock) ((sock)->sock_type) argument
115 #define sockevent_get_opt(sock) ((sock)->sock_opt) argument
116 #define sockevent_is_listening(sock) (!!((sock)->sock_opt & SO_ACCEPTCONN)) argument
117 #define sockevent_is_shutdown(sock, mask) ((sock)->sock_flags & (mask)) argument
118 #define sockevent_is_closing(sock) (!!((sock)->sock_flags & SFL_CLOSING)) argument