Node Director
Classes | Macros | Typedefs | Functions
wininetd.c File Reference
#include <winsock2.h>
#include <windows.h>
#include <tchar.h>
#include <stdlib.h>
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <process.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <stdarg.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "wininetd.h"

Classes

struct  s_portmap
struct  s_thread_data

Macros

#define WINET_LOG_MESSAGE   1
#define WINET_LOG_WARNING   2
#define WINET_LOG_ERROR   3
#define MAX_PMAPS   128
#define CFGFILENAME   "wininetd.conf"
#define ACCEPT_TIMEOUT   4
#define LSN_BKLOG   128
#define WINET_CHILD_FLAGS   (CREATE_NEW_PROCESS_GROUP | CREATE_NO_WINDOW)
#define CLIENT_IP   _TEXT("CLIENT_IP")
#define CLIENT_PORT   _TEXT("CLIENT_PORT")
#define LONGEST_ADDR   _T("111.111.111.111")
#define LONGEST_PORT   _T("12345")

Typedefs

typedef struct s_portmap portmap_t
typedef struct s_thread_data thread_data_t

Functions

unsigned int __stdcall winet_thread_proc (void *data)
void pWin32Error (char const *fmt,...)
void pWinsockError (char const *fmt,...)
int winet_stop_service (void)
int winet_main (int argc, char const **argv)

Macro Definition Documentation

#define ACCEPT_TIMEOUT   4

Referenced by winet_main().

#define CFGFILENAME   "wininetd.conf"

Referenced by winet_main().

#define CLIENT_IP   _TEXT("CLIENT_IP")

Referenced by winet_main().

#define CLIENT_PORT   _TEXT("CLIENT_PORT")

Referenced by winet_main().

#define LONGEST_ADDR   _T("111.111.111.111")
#define LONGEST_PORT   _T("12345")
#define LSN_BKLOG   128
#define MAX_PMAPS   128
#define WINET_CHILD_FLAGS   (CREATE_NEW_PROCESS_GROUP | CREATE_NO_WINDOW)
#define WINET_LOG_ERROR   3

Referenced by winet_main().

#define WINET_LOG_MESSAGE   1

Referenced by winet_main().

#define WINET_LOG_WARNING   2

Typedef Documentation

typedef struct s_portmap portmap_t
typedef struct s_thread_data thread_data_t

Function Documentation

void pWin32Error ( char const *  fmt,
  ... 
)

References WINET_LOG_WARNING.

Referenced by winet_main().

void pWinsockError ( char const *  fmt,
  ... 
)

References WINET_LOG_WARNING.

int winet_main ( int  argc,
char const **  argv 
)
int winet_stop_service ( void  )

Referenced by main().

unsigned int __stdcall winet_thread_proc ( void *  data)

References s_thread_data::asock.