Go to the source code of this file.
◆ BUFSIZE
◆ DiscardHandler()
Definition at line 44 of file discard.c.
45{
48
50 {
52 retVal = 1;
53 }
54
57 {
59 }
60 else
61 {
63 retVal = 1;
64 }
65
68}
VOID LogEvent(LPCWSTR lpMsg, DWORD errNum, DWORD exitCode, UINT flags)
static BOOL ReceiveIncomingPackets(SOCKET sock)
VOID WINAPI ExitThread(IN DWORD uExitCode)
BOOL ShutdownConnection(SOCKET sock, BOOL bRec)
◆ ReceiveIncomingPackets()
Definition at line 15 of file discard.c.
16{
19
20 do
21 {
23 if (readBytes > 0)
24 {
26
27 swprintf(logBuf,
L"Discard: Received %d bytes from client", readBytes);
29 }
31 {
34 }
35 }
while ((readBytes > 0) && (!
bShutdown));
36
39
41}
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
int PASCAL FAR WSAGetLastError(void)
Referenced by DiscardHandler().