42{
54
56 {
57 skip(
"Failed to init WS2\n");
58 return;
59 }
60
64
67 {
68 skip(
"Cannot create socket\n");
70 }
71
76
78 {
79 skip(
"Cannot bind socket\n");
80 goto quit2;
81 }
82
84 {
85 ok(UdpTable->dwNumEntries > 0,
"No UDP connections?!\n");
86
88 for (
i = 0;
i < UdpTable->dwNumEntries; ++
i)
89 {
90 if (UdpTable->table[
i].dwLocalAddr == 0 &&
91 UdpTable->table[
i].dwLocalPort ==
htons(9876))
92 {
94 break;
95 }
96 }
97 ok(
Found,
"Our socket wasn't found!\n");
98
100 }
101 else
102 {
103 skip(
"GetExtendedUdpTableWithAlloc failure\n");
104 }
105
107 {
108 ok(UdpTableOwner->dwNumEntries > 0,
"No UDP connections?!\n");
109
111 for (
i = 0;
i < UdpTableOwner->dwNumEntries; ++
i)
112 {
113 if (UdpTableOwner->table[
i].dwLocalAddr == 0 &&
114 UdpTableOwner->table[
i].dwLocalPort ==
htons(9876))
115 {
117 break;
118 }
119 }
120
122 {
123 skip(
"Our socket wasn't found!\n");
124 }
125 else
126 {
127 ok(UdpTableOwner->table[
i].dwOwningPid == Pid,
"Invalid owner\n");
128 }
129
131 }
132 else
133 {
134 skip(
"GetExtendedUdpTableWithAlloc failure\n");
135 }
136
138 {
139 ok(UdpTableOwnerMod->dwNumEntries > 0,
"No TCP connections?!\n");
140
142 for (
i = 0;
i < UdpTableOwnerMod->dwNumEntries; ++
i)
143 {
144 if (UdpTableOwnerMod->table[
i].dwLocalAddr == 0 &&
145 UdpTableOwnerMod->table[
i].dwLocalPort ==
htons(9876))
146 {
148 break;
149 }
150 }
151
153 {
154 skip(
"Our socket wasn't found!\n");
155 }
156 else
157 {
158 ok(UdpTableOwnerMod->table[
i].dwOwningPid == Pid,
"Invalid owner\n");
159
160 ok(UdpTableOwnerMod->table[
i].liCreateTimestamp.QuadPart >= CreationTime.
QuadPart,
"Invalid time\n");
161 ok(UdpTableOwnerMod->table[
i].liCreateTimestamp.QuadPart <= CreationTime.
QuadPart + 60000000000LL,
"Invalid time\n");
162 }
163
165 }
166 else
167 {
168 skip(
"GetExtendedUdpTableWithAlloc failure\n");
169 }
170
171quit2:
175}
static DWORD GetExtendedUdpTableWithAlloc(PVOID *UdpTable, BOOL Order, DWORD Family, UDP_TABLE_CLASS Class)
void quit(int argc, const char *argv[])
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
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 bind(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
static rfbScreenInfoPtr server
DWORD WINAPI GetCurrentProcessId(void)
int PASCAL FAR WSACleanup(void)