ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

tcpsvcs.h
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <winsock2.h>
00003 #include <tchar.h>
00004 #include <time.h>
00005 
00006 #ifndef _MSC_VER
00007 #define _swprintf swprintf
00008 #endif
00009 
00010 #define LOG_FILE 1
00011 #define LOG_EVENTLOG 2
00012 #define LOG_ERROR 4
00013 #define LOG_ALL (LOG_FILE | LOG_EVENTLOG | LOG_ERROR)
00014 
00015 /* default port numbers */
00016 #define ECHO_PORT 7
00017 #define DISCARD_PORT 9
00018 #define DAYTIME_PORT 13
00019 #define QOTD_PORT 17
00020 #define CHARGEN_PORT 19
00021 
00022 #define NUM_SERVICES 5
00023 #define CS_TIMEOUT 1000
00024 
00025 
00026 /* data structure to pass to threads */
00027 typedef struct _Services
00028 {
00029     USHORT Port;
00030     LPWSTR lpName;
00031     LPTHREAD_START_ROUTINE lpService;
00032 } SERVICES, *PSERVICES;
00033 
00034 extern volatile BOOL bShutdown;
00035 extern volatile BOOL bPause;
00036 
00037 /* logging functions */
00038 BOOL InitLogging(VOID);
00039 VOID UninitLogging(VOID);
00040 VOID LogEvent(LPCWSTR lpMsg, DWORD errNum, DWORD exitCode, UINT flags);
00041 
00042 /* skelserver functions */
00043 DWORD WINAPI StartServer(LPVOID lpParam);
00044 BOOL ShutdownConnection(SOCKET Sock, BOOL bRec);
00045 
00046 /* server thread handlers */
00047 DWORD WINAPI ChargenHandler(VOID* sock_);
00048 DWORD WINAPI DaytimeHandler(VOID* sock_);
00049 DWORD WINAPI EchoHandler(VOID* sock_);
00050 DWORD WINAPI DiscardHandler(VOID* sock_);
00051 DWORD WINAPI QotdHandler(VOID* sock_);

Generated on Sun May 27 2012 04:17:54 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.