11{
13 int iResult;
18
19
21 ok(iResult == 0,
"WSAStartup failed. iResult = %d\n", iResult);
22
23
24 BytesAvailable = 0xdeadbeef;
27 ok(BytesAvailable == 0xdeadbeef,
"BytesAvailable = %ld\n", BytesAvailable);
28
29
31 {
32 ok(0,
"CreateSocket failed. Aborting test.\n");
33 return 0;
34 }
35
36
37 BytesAvailable = 0xdeadbeef;
39 ok(iResult == 0,
"iResult = %d\n", iResult);
40 ok(BytesAvailable == 0,
"BytesAvailable = %ld\n", BytesAvailable);
41
42
44 {
45 ok(0,
"ConnectToReactOSWebsite failed. Aborting test.\n");
46 return 0;
47 }
48
49
51 ok(iResult == 0,
"iResult = %d\n", iResult);
52 ok(BytesAvailable == 0,
"BytesAvailable = %ld\n", BytesAvailable);
53
54
56 {
57 ok(0,
"GetRequestAndWait failed. Aborting test.\n");
58 return 0;
59 }
60
61
63 ok(BytesAvailable != 0,
"BytesAvailable = %ld\n", BytesAvailable);
64
65
66 BytesToRead = BytesAvailable / 2;
70
71 BytesToRead = BytesAvailable - BytesToRead;
72
73
75 ok(BytesAvailable == BytesToRead,
"BytesAvailable = %ld\n", BytesAvailable);
76
77
81
82
84 ok(BytesAvailable == 0,
"BytesAvailable = %ld\n", BytesAvailable);
85
88 return 1;
89}
#define HeapFree(x, y, z)
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
int GetRequestAndWait(SOCKET sck)
int ConnectToReactOSWebsite(SOCKET sck)
static void CreateSocket(void)
int PASCAL FAR WSACleanup(void)