57 skip(
"Failed to init WS2\n");
68 skip(
"Cannot create socket\n");
79 skip(
"Cannot bind socket\n");
85 skip(
"Cannot listen on socket\n");
91 ok(TcpTable->dwNumEntries > 0,
"No TCP connections?!\n");
94 for (
i = 0;
i < TcpTable->dwNumEntries; ++
i)
97 TcpTable->table[
i].dwLocalAddr == 0 &&
98 TcpTable->table[
i].dwLocalPort ==
htons(9876) &&
99 TcpTable->table[
i].dwRemoteAddr == 0)
105 ok(
Found,
"Our socket wasn't found!\n");
111 skip(
"GetExtendedTcpTableWithAlloc failure\n");
117 for (
i = 0;
i < TcpTable->dwNumEntries; ++
i)
120 TcpTable->table[
i].dwLocalAddr == 0 &&
121 TcpTable->table[
i].dwLocalPort ==
htons(9876) &&
122 TcpTable->table[
i].dwRemoteAddr == 0)
134 skip(
"GetExtendedTcpTableWithAlloc failure\n");
139 ok(TcpTable->dwNumEntries > 0,
"No TCP connections?!\n");
142 for (
i = 0;
i < TcpTable->dwNumEntries; ++
i)
145 TcpTable->table[
i].dwLocalAddr == 0 &&
146 TcpTable->table[
i].dwLocalPort ==
htons(9876) &&
147 TcpTable->table[
i].dwRemoteAddr == 0)
153 ok(
Found,
"Our socket wasn't found!\n");
159 skip(
"GetExtendedTcpTableWithAlloc failure\n");
164 ok(TcpTableOwner->dwNumEntries > 0,
"No TCP connections?!\n");
167 for (
i = 0;
i < TcpTableOwner->dwNumEntries; ++
i)
170 TcpTableOwner->table[
i].dwLocalAddr == 0 &&
171 TcpTableOwner->table[
i].dwLocalPort ==
htons(9876) &&
172 TcpTableOwner->table[
i].dwRemoteAddr == 0)
181 skip(
"Our socket wasn't found!\n");
185 ok(TcpTableOwner->table[
i].dwOwningPid == Pid,
"Invalid owner\n");
192 skip(
"GetExtendedTcpTableWithAlloc failure\n");
198 for (
i = 0;
i < TcpTableOwner->dwNumEntries; ++
i)
201 TcpTableOwner->table[
i].dwLocalAddr == 0 &&
202 TcpTableOwner->table[
i].dwLocalPort ==
htons(9876) &&
203 TcpTableOwner->table[
i].dwRemoteAddr == 0)
215 skip(
"GetExtendedTcpTableWithAlloc failure\n");
220 ok(TcpTableOwner->dwNumEntries > 0,
"No TCP connections?!\n");
223 for (
i = 0;
i < TcpTableOwner->dwNumEntries; ++
i)
226 TcpTableOwner->table[
i].dwLocalAddr == 0 &&
227 TcpTableOwner->table[
i].dwLocalPort ==
htons(9876) &&
228 TcpTableOwner->table[
i].dwRemoteAddr == 0)
237 skip(
"Our socket wasn't found!\n");
241 ok(TcpTableOwner->table[
i].dwOwningPid == Pid,
"Invalid owner\n");
248 skip(
"GetExtendedTcpTableWithAlloc failure\n");
253 ok(TcpTableOwnerMod->dwNumEntries > 0,
"No TCP connections?!\n");
256 for (
i = 0;
i < TcpTableOwnerMod->dwNumEntries; ++
i)
259 TcpTableOwnerMod->table[
i].dwLocalAddr == 0 &&
260 TcpTableOwnerMod->table[
i].dwLocalPort ==
htons(9876) &&
261 TcpTableOwnerMod->table[
i].dwRemoteAddr == 0)
270 skip(
"Our socket wasn't found!\n");
274 ok(TcpTableOwnerMod->table[
i].dwOwningPid == Pid,
"Invalid owner\n");
276 ok(TcpTableOwnerMod->table[
i].liCreateTimestamp.QuadPart >= CreationTime.
QuadPart,
"Invalid time\n");
277 ok(TcpTableOwnerMod->table[
i].liCreateTimestamp.QuadPart <= CreationTime.
QuadPart + 60000000000
LL,
"Invalid time\n");
284 skip(
"GetExtendedTcpTableWithAlloc failure\n");
290 for (
i = 0;
i < TcpTableOwnerMod->dwNumEntries; ++
i)
293 TcpTableOwnerMod->table[
i].dwLocalAddr == 0 &&
294 TcpTableOwnerMod->table[
i].dwLocalPort ==
htons(9876) &&
295 TcpTableOwnerMod->table[
i].dwRemoteAddr == 0)
307 skip(
"GetExtendedTcpTableWithAlloc failure\n");
312 ok(TcpTableOwnerMod->dwNumEntries > 0,
"No TCP connections?!\n");
315 for (
i = 0;
i < TcpTableOwnerMod->dwNumEntries; ++
i)
318 TcpTableOwnerMod->table[
i].dwLocalAddr == 0 &&
319 TcpTableOwnerMod->table[
i].dwLocalPort ==
htons(9876) &&
320 TcpTableOwnerMod->table[
i].dwRemoteAddr == 0)
329 skip(
"Our socket wasn't found!\n");
333 ok(TcpTableOwnerMod->table[
i].dwOwningPid == Pid,
"Invalid owner\n");
335 ok(TcpTableOwnerMod->table[
i].liCreateTimestamp.QuadPart >= CreationTime.
QuadPart,
"Invalid time\n");
336 ok(TcpTableOwnerMod->table[
i].liCreateTimestamp.QuadPart <= CreationTime.
QuadPart + 60000000000
LL,
"Invalid time\n");
343 skip(
"GetExtendedTcpTableWithAlloc failure\n");
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
static rfbScreenInfoPtr server
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
INT WSAAPI bind(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
void quit(int argc, const char *argv[])
INT WSAAPI WSACleanup(VOID)
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
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
INT WSAAPI listen(IN SOCKET s, IN INT backlog)
#define HeapFree(x, y, z)
static DWORD GetExtendedTcpTableWithAlloc(PVOID *TcpTable, BOOL Order, DWORD Family, TCP_TABLE_CLASS Class)
DWORD WINAPI GetCurrentProcessId(VOID)