21 ok(iResult == 0,
"WSAStartup failed. iResult = %d\n", iResult);
24 BytesAvailable = 0xdeadbeef;
27 ok(BytesAvailable == 0xdeadbeef,
"BytesAvailable = %ld\n", BytesAvailable);
32 ok(0,
"CreateSocket failed. Aborting test.\n");
37 BytesAvailable = 0xdeadbeef;
39 ok(iResult == 0,
"iResult = %d\n", iResult);
40 ok(BytesAvailable == 0,
"BytesAvailable = %ld\n", BytesAvailable);
45 ok(0,
"ConnectToReactOSWebsite failed. Aborting test.\n");
51 ok(iResult == 0,
"iResult = %d\n", iResult);
52 ok(BytesAvailable == 0,
"BytesAvailable = %ld\n", BytesAvailable);
57 ok(0,
"GetRequestAndWait failed. Aborting test.\n");
63 ok(BytesAvailable != 0,
"BytesAvailable = %ld\n", BytesAvailable);
66 BytesToRead = BytesAvailable / 2;
71 BytesToRead = BytesAvailable - BytesToRead;
75 ok(BytesAvailable == BytesToRead,
"BytesAvailable = %ld\n", BytesAvailable);
84 ok(BytesAvailable == 0,
"BytesAvailable = %ld\n", BytesAvailable);
#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)