#include <ws2_32.h>
#include <debug.h>
Go to the source code of this file.
◆ DH2N
Value: ((((
dw) & 0xFF000000L) >> 24) | \
(((
dw) & 0x00FF0000L) >> 8) | \
(((
dw) & 0x0000FF00L) << 8) | \
(((
dw) & 0x000000FFL) << 24))
REFIID LPVOID DWORD_PTR dw
Definition at line 28 of file addrconv.c.
◆ DN2H
Value: ((((
dw) & 0xFF000000L) >> 24) | \
(((
dw) & 0x00FF0000L) >> 8) | \
(((
dw) & 0x0000FF00L) << 8) | \
(((
dw) & 0x000000FFL) << 24))
Definition at line 21 of file addrconv.c.
◆ NDEBUG
◆ WH2N
Value: ((((
w) & 0xFF00) >> 8) | \
GLubyte GLubyte GLubyte GLubyte w
Definition at line 40 of file addrconv.c.
◆ WN2H
Value: ((((
w) & 0xFF00) >> 8) | \
Definition at line 35 of file addrconv.c.
◆ htonl()
◆ htons()
◆ inet_addr()
Definition at line 71 of file addrconv.c.
72{
74 register unsigned char c;
78
79again:
80
81
82
83
84
87 if (*++
cp ==
'x' || *
cp ==
'X')
89 else
91 }
96 continue;
97 }
101 continue;
102 }
103 break;
104 }
106
107
108
109
110
111
115 goto again;
116 }
117
118
119
121
123
124
125
126
129
130 case 1:
132 break;
133
134 case 2:
136 break;
137
138 case 3:
141 break;
142
143 case 4:
146 break;
147
148 default:
150 }
153}
std::map< E_STRING, PART_TEST > parts
◆ inet_ntoa()
Definition at line 160 of file addrconv.c.
161{
170
171
173 {
175
176
178 {
179
182 }
183
184
186 {
187
190 }
191
192
195 {
196
200 }
201 }
202
204 _itoa(
in.S_un.S_addr & 0xFF,
b, 10);
206 _itoa((
in.S_un.S_addr >> 8) & 0xFF,
b, 10);
209 _itoa((
in.S_un.S_addr >> 16) & 0xFF,
b, 10);
212 _itoa((
in.S_un.S_addr >> 24) & 0xFF,
b, 10);
215
216
218
219
221}
char * strcat(char *DstString, const char *SrcString)
char * strcpy(char *DstString, const char *SrcString)
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
GLboolean GLboolean GLboolean b
_CRTIMP char *__cdecl _itoa(_In_ int _Value, _Pre_notnull_ _Post_z_ char *_Dest, _In_ int _Radix)
_In_ NDIS_ERROR_CODE ErrorCode
#define WSANOTINITIALISED
int PASCAL FAR WSACleanup(void)
INT WSAAPI WsApiProlog(OUT PWSPROCESS *Process, OUT PWSTHREAD *Thread)
◆ ntohl()
◆ ntohs()
◆ WSAHtonl()
Definition at line 268 of file addrconv.c.
271{
274 DPRINT(
"WSAHtonl: %p, %lx, %p\n",
s, hostlong, lpnetlong);
275
276
278 {
279
280 if (!lpnetlong)
281 {
282
285 }
286
287
289 {
290
293 {
294
295 *lpnetlong = hostlong;
296 }
297 else
298 {
299
300 *lpnetlong =
DN2H(hostlong);
301 }
302
303
305
306
308 }
309 else
310 {
311
313 }
314 }
315
316
319}
WSAPROTOCOL_INFOW ProtocolInfo
PTCATALOG_ENTRY CatalogEntry
FORCEINLINE DWORD WsQuickProlog(VOID)
VOID WSAAPI WsSockDereference(IN PWSSOCKET Socket)
PWSSOCKET WSAAPI WsSockGetSocket(IN SOCKET Handle)
◆ WSAHtons()
Definition at line 326 of file addrconv.c.
329{
332 DPRINT(
"WSAHtons: %p, %lx, %p\n",
s, hostshort, lpnetshort);
333
334
336 {
337
338 if (!lpnetshort)
339 {
340
343 }
344
345
347 {
348
351 {
352
353 *lpnetshort = hostshort;
354 }
355 else
356 {
357
358 *lpnetshort =
WN2H(hostshort);
359 }
360
361
363
364
366 }
367 else
368 {
369
371 }
372 }
373
374
377}
◆ WSANtohl()
Definition at line 384 of file addrconv.c.
387{
390 DPRINT(
"WSANtohl: %p, %lx, %p\n",
s, netlong, lphostlong);
391
392
394 {
395
396 if (!lphostlong)
397 {
398
401 }
402
403
405 {
406
409 {
410
411 *lphostlong = netlong;
412 }
413 else
414 {
415
416 *lphostlong =
DN2H(netlong);
417 }
418
419
421
422
424 }
425 else
426 {
427
429 }
430 }
431
432
435}
◆ WSANtohs()
Definition at line 442 of file addrconv.c.
445{
448 DPRINT(
"WSANtohs: %p, %lx, %p\n",
s, netshort, lphostshort);
449
450
452 {
453
454 if (!lphostshort)
455 {
456
459 }
460
461
463 {
464
467 {
468
469 *lphostshort = netshort;
470 }
471 else
472 {
473
474 *lphostshort =
WN2H(netshort);
475 }
476
477
479
480
482 }
483 else
484 {
485
487 }
488 }
489
490
493}