Diff
Not logged in

Differences From Artifact [27a57d6629]:

To Artifact [35f616800a]:


80
81
82
83
84
85
86
87
88
89
90




91
92
93
94



95
96
97
98




99
100
101
102
103
104
105
80
81
82
83
84
85
86




87
88
89
90




91
92
93
94



95
96
97
98
99
100
101
102
103
104
105







-
-
-
-
+
+
+
+
-
-
-
-
+
+
+

-
-
-
+
+
+
+







    int cachedBlocking;		/* Cache blocking mode of async socket. */
};

/*
 * These bits may be OR'ed together into the "flags" field of a TcpState
 * structure.
 */

#define TCP_NONBLOCKING		(1<<0)	/* Socket with non-blocking I/O */
#define TCP_ASYNC_CONNECT	(1<<1)	/* Async connect in progress. */
#define TCP_ASYNC_PENDING	(1<<4)	/* TcpConnect was called to
enum TcpStateFlags {
    TCP_NONBLOCKING = 1<<0,	/* Socket with non-blocking I/O */
    TCP_ASYNC_CONNECT = 1<<1,	/* Async connect in progress. */
    TCP_ASYNC_PENDING = 1<<4,	/* TcpConnect was called to process an async
					 * process an async connect. This
					 * flag indicates that reentry is
					 * still pending */
#define TCP_ASYNC_FAILED	(1<<5)	/* An async connect finally failed */
				 * connect. This flag indicates that reentry
				 * is still pending */
    TCP_ASYNC_FAILED = 1<<5,	/* An async connect finally failed. */

#define TCP_ASYNC_TEST_MODE	(1<<8)	/* Async testing activated.  Do not
					 * automatically continue connection
					 * process. */
    TCP_ASYNC_TEST_MODE = 1<<8	/* Async testing activated.  Do not
				 * automatically continue connection
				 * process. */
};

/*
 * The following defines the maximum length of the listen queue. This is the
 * number of outstanding yet-to-be-serviced requests for a connection on a
 * server socket, more than this number of outstanding requests and the
 * connection request will fail.
 */