Go to the source code of this file.
◆ LISTEN_BACKLOG
◆ LISTEN_PORT
◆ THREAD_PROC_LOOPS
◆ TIME_SLEEP1
◆ TIMEOUT_SEC
◆ TIMEOUT_USEC
◆ START_TEST()
Definition at line 177 of file close.c.
178{
181
182
185
189
191}
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
void Test_CloseDuplicatedSocket()
void Test_CloseWhileSelectSameSocket()
void Test_CloseWhileSelectDuplicatedSocket()
int PASCAL FAR WSAGetLastError(void)
int PASCAL FAR WSACleanup(void)
◆ Test_CloseDuplicatedSocket()
void Test_CloseDuplicatedSocket |
( |
| ) |
|
Definition at line 10 of file close.c.
11{
12 char szBuf[10];
17
18
21 {
23 return;
24 }
25
28
31
32 dup_sck =
WSASocketW(0, 0, 0, &ProtocolInfo, 0, 0);
34 {
37 return;
38 }
39
42
45
48
51 return;
52}
INT WSAAPI sendto(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags, IN CONST struct sockaddr *to, IN INT tolen)
INT WSAAPI WSADuplicateSocketW(IN SOCKET s, IN DWORD dwProcessId, OUT LPWSAPROTOCOL_INFOW lpProtocolInfo)
SOCKET WSAAPI WSASocketW(IN INT af, IN INT type, IN INT protocol, IN LPWSAPROTOCOL_INFOW lpProtocolInfo, IN GROUP g, IN DWORD dwFlags)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
DWORD WINAPI GetCurrentProcessId(void)
Referenced by START_TEST().
◆ Test_CloseWhileSelectDuplicatedSocket()
void Test_CloseWhileSelectDuplicatedSocket |
( |
| ) |
|
Definition at line 125 of file close.c.
126{
132
133
136 {
138 return;
139 }
140
143 addrin.sin_addr.s_addr =
inet_addr(
"127.0.0.1");
145
150
153
154 dup_sock =
WSASocketW(0, 0, 0, &ProtocolInfo, 0, 0);
156 {
159 return;
160 }
161
164
167
171
174 return;
175}
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
DWORD WINAPI thread_proc(void *param)
INT WSAAPI listen(IN SOCKET s, IN INT backlog)
INT WSAAPI bind(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
DWORD WINAPI GetLastError(void)
Referenced by START_TEST().
◆ Test_CloseWhileSelectSameSocket()
void Test_CloseWhileSelectSameSocket |
( |
| ) |
|
Definition at line 88 of file close.c.
89{
94
95
98 {
100 return;
101 }
102
105 addrin.sin_addr.s_addr =
inet_addr(
"127.0.0.1");
107
112
115
119
122 return;
123}
Referenced by START_TEST().
◆ thread_proc()
Definition at line 66 of file close.c.
67{
72
75
77 {
79
81
83 }
84
85 return 0;
86}
INT WSAAPI select(IN INT s, IN OUT LPFD_SET readfds, IN OUT LPFD_SET writefds, IN OUT LPFD_SET exceptfds, IN CONST struct timeval *timeout)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define THREAD_PROC_LOOPS
Referenced by Test_CloseWhileSelectDuplicatedSocket(), and Test_CloseWhileSelectSameSocket().