ReactOS 0.4.16-dev-92-g0c2cdca
|
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winsock2.h>
#include <tchar.h>
#include <strsafe.h>
Go to the source code of this file.
Classes | |
struct | _Services |
Macros | |
#define | WIN32_NO_STATUS |
#define | _INC_WINDOWS |
#define | LOG_FILE 1 |
#define | LOG_EVENTLOG 2 |
#define | LOG_ERROR 4 |
#define | LOG_ALL (LOG_FILE | LOG_EVENTLOG | LOG_ERROR) |
#define | ECHO_PORT 7 |
#define | DISCARD_PORT 9 |
#define | DAYTIME_PORT 13 |
#define | QOTD_PORT 17 |
#define | CHARGEN_PORT 19 |
#define | NUM_SERVICES 5 |
#define | CS_TIMEOUT 1000 |
Typedefs | |
typedef struct _Services | SERVICES |
typedef struct _Services * | PSERVICES |
Functions | |
BOOL | InitLogging (VOID) |
VOID | UninitLogging (VOID) |
VOID | LogEvent (LPCWSTR lpMsg, DWORD errNum, DWORD exitCode, UINT flags) |
DWORD WINAPI | StartServer (LPVOID lpParam) |
BOOL | ShutdownConnection (SOCKET Sock, BOOL bRec) |
DWORD WINAPI | ChargenHandler (VOID *sock_) |
DWORD WINAPI | DaytimeHandler (VOID *sock_) |
DWORD WINAPI | EchoHandler (VOID *sock_) |
DWORD WINAPI | DiscardHandler (VOID *sock_) |
DWORD WINAPI | QotdHandler (VOID *sock_) |
Variables | |
volatile BOOL | bShutdown |
volatile BOOL | bPause |
Definition at line 96 of file chargen.c.
Definition at line 29 of file daytime.c.
Definition at line 44 of file discard.c.
Definition at line 69 of file echo.c.
Definition at line 196 of file log.c.
Referenced by _tmain(), AcceptConnections(), ChargenHandler(), CreateServers(), CreateServiceThread(), DaytimeHandler(), DiscardHandler(), EchoHandler(), EchoIncomingPackets(), QotdHandler(), ReceiveIncomingPackets(), RetrieveQuote(), SendLine(), SendTime(), ServerCtrlHandler(), ServiceMain(), SetUpListener(), ShutdownConnection(), StartServer(), and UpdateStatus().
Definition at line 135 of file qotd.c.
Definition at line 126 of file skelserver.c.
Referenced by ChargenHandler(), DaytimeHandler(), DiscardHandler(), EchoHandler(), and QotdHandler().
Definition at line 165 of file skelserver.c.
Referenced by CreateServers(), and DECLARE_INTERFACE_().
Definition at line 16 of file tcpsvcs.c.
Referenced by AcceptConnections(), Adv_InitDialog(), EchoIncomingPackets(), GenerateChars(), ReceiveIncomingPackets(), ServerCtrlHandler(), and StartServer().