Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/socketvar.h
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
TAILQ_HEAD(accept_queue, socket); | TAILQ_HEAD(accept_queue, socket); | ||||
struct socket { | struct socket { | ||||
struct mtx so_lock; | struct mtx so_lock; | ||||
volatile u_int so_count; /* (b / refcount) */ | volatile u_int so_count; /* (b / refcount) */ | ||||
struct selinfo so_rdsel; /* (b/cr) for so_rcv/so_comp */ | struct selinfo so_rdsel; /* (b/cr) for so_rcv/so_comp */ | ||||
struct selinfo so_wrsel; /* (b/cs) for so_snd */ | struct selinfo so_wrsel; /* (b/cs) for so_snd */ | ||||
short so_type; /* (a) generic type, see socket.h */ | short so_type; /* (a) generic type, see socket.h */ | ||||
short so_options; /* (b) from socket call, see socket.h */ | int so_options; /* (b) from socket call, see socket.h */ | ||||
short so_linger; /* time to linger close(2) */ | short so_linger; /* time to linger close(2) */ | ||||
short so_state; /* (b) internal state flags SS_* */ | short so_state; /* (b) internal state flags SS_* */ | ||||
void *so_pcb; /* protocol control block */ | void *so_pcb; /* protocol control block */ | ||||
struct vnet *so_vnet; /* (a) network stack instance */ | struct vnet *so_vnet; /* (a) network stack instance */ | ||||
struct protosw *so_proto; /* (a) protocol handle */ | struct protosw *so_proto; /* (a) protocol handle */ | ||||
short so_timeo; /* (g) connection timeout */ | short so_timeo; /* (g) connection timeout */ | ||||
u_short so_error; /* (f) error affecting connection */ | u_short so_error; /* (f) error affecting connection */ | ||||
struct sigio *so_sigio; /* [sg] information for async I/O or | struct sigio *so_sigio; /* [sg] information for async I/O or | ||||
▲ Show 20 Lines • Show All 429 Lines • Show Last 20 Lines |