Lines Matching defs:socket

3  * NAT - socket handling (declarations/defines).
36 * Our socket structure
39 struct socket
41 struct socket *so_next;
42 struct socket *so_prev; /* For a linked list of sockets */
45 int s; /* The actual socket */
72 uint8_t so_sottl; /* cached socket's IP_TTL option */
73 uint8_t so_sotos; /* cached socket's IP_TOS option */
74 int8_t so_sodf; /* cached socket's DF option */
76 u_char so_type; /* Type of socket, UDP or TCP */
80 u_int so_expire; /* When the socket will expire */
82 int so_queued; /* Number of packets queued from this socket */
93 * FD_CLOSE/POLLHUP event has been occurred on socket
97 void (* so_timeout)(PNATState pData, struct socket *so, void *arg);
101 struct socket *so_cloneOf; /* pointer to master instance */
105 * to let polling routine gain control over freeing socket whatever level of
106 * TCP/IP initiated socket releasing.
107 * So polling routine when start processing socket alter it's state to
111 * ''sofree'' or continue socket processing.
113 * clearing ''fUnderPolling'' to do real freeng of the socket and removing from
122 * fUnderPolling = 1, then we don't remove socket from the queue, just
148 #define SS_FACCEPTONCE 0x200 /* If set, the SS_FACCEPTCONN socket will die after one accept */
150 extern struct socket tcb;
170 struct socket * solookup (struct socket *, struct in_addr, u_int, struct in_addr, u_int);
171 struct socket * socreate (void);
172 void sofree (PNATState, struct socket *);
173 int soread (PNATState, struct socket *);
174 void sorecvoob (PNATState, struct socket *);
175 int sosendoob (struct socket *);
176 int sowrite (PNATState, struct socket *);
177 void sorecvfrom (PNATState, struct socket *);
178 int sosendto (PNATState, struct socket *, struct mbuf *);
179 struct socket * solisten (PNATState, u_int32_t, u_int, u_int32_t, u_int, int);
180 void sorwakeup (struct socket *);
181 void sowwakeup (struct socket *);
182 void soisfconnecting (register struct socket *);
183 void soisfconnected (register struct socket *);
184 void sofcantrcvmore (struct socket *);
185 void sofcantsendmore (struct socket *);
186 void soisfdisconnected (struct socket *);
187 void sofwdrain (struct socket *);
190 * Creates copy of UDP socket with specified addr
191 * fBindSocket - in case we want bind a real socket.
192 * @return copy of the socket with f_addr equal to u32ForeignAddr
195 struct socket * soCloneUDPSocketWithForegnAddr(PNATState pData, bool fBindSocket, struct socket *pSo, uint32_t u32ForeignAddr);
196 struct socket *soLookUpClonedUDPSocket(PNATState pData, const struct socket *pcSo, uint32_t u32ForeignAddress);