ReactOS 0.4.16-dev-329-g9223134
|
#include <stdio.h>
#include <winsock2.h>
#include <process.h>
#include <time.h>
#include <tchar.h>
#include <ws2tcpip.h>
#include <limits.h>
#include <iphlpapi.h>
#include <math.h>
#include "tftpd.h"
Go to the source code of this file.
Variables | |
char | serviceName [] = "TFTPServer" |
char | displayName [] = "Open TFTP Server, MultiThreaded" |
char | sVersion [] = "Open TFTP Server MultiThreaded Version 1.64 Windows Built 2001" |
char | iniFile [_MAX_PATH] |
char | logFile [_MAX_PATH] |
char | lnkFile [_MAX_PATH] |
char | tempbuff [256] |
char | extbuff [_MAX_PATH] |
char | logBuff [512] |
char | fileSep = '\\' |
char | notFileSep = '/' |
MYWORD | blksize = 65464 |
char | verbatim = 0 |
MYWORD | timeout = 3 |
MYWORD | loggingDay |
data1 | network |
data1 | newNetwork |
data2 | cfig |
HANDLE | tEvent |
HANDLE | cEvent |
HANDLE | sEvent |
HANDLE | lEvent |
MYBYTE | currentServer = UCHAR_MAX |
MYWORD | totalThreads =0 |
MYWORD | minThreads =1 |
MYWORD | activeThreads =0 |
SERVICE_STATUS | serviceStatus |
SERVICE_STATUS_HANDLE | serviceStatusHandle = 0 |
HANDLE | stopServiceEvent = 0 |
Definition at line 2557 of file tftpd.cpp.
Referenced by getInterfaces().
Definition at line 1505 of file tftpd.cpp.
Referenced by processRequest().
void closeConn | ( | ) |
Definition at line 481 of file tftpd.cpp.
Referenced by init(), runProg(), and ServiceMain().
bool detectChange | ( | ) |
Definition at line 2428 of file tftpd.cpp.
Referenced by init().
Definition at line 2519 of file tftpd.cpp.
Referenced by init().
Definition at line 1533 of file tftpd.cpp.
Definition at line 1805 of file tftpd.cpp.
void installService | ( | ) |
Definition at line 256 of file tftpd.cpp.
Referenced by main().
Definition at line 2585 of file tftpd.cpp.
Referenced by detectChange(), init(), processRequest(), runProg(), and ServiceMain().
Definition at line 2622 of file tftpd.cpp.
Definition at line 346 of file tftpd.cpp.
Definition at line 1730 of file tftpd.cpp.
Referenced by init().
Definition at line 1643 of file tftpd.cpp.
Definition at line 1689 of file tftpd.cpp.
Referenced by getSection(), mySplit(), openSection(), and readSection().
void printWindowsError | ( | ) |
Definition at line 323 of file tftpd.cpp.
Referenced by installService(), main(), and uninstallService().
Definition at line 488 of file tftpd.cpp.
Referenced by init(), runProg(), and ServiceMain().
void runProg | ( | ) |
Definition at line 393 of file tftpd.cpp.
Referenced by main().
void runService | ( | ) |
Definition at line 214 of file tftpd.cpp.
Referenced by main().
Definition at line 67 of file tftpd.cpp.
Referenced by ServiceMain().
Definition at line 98 of file tftpd.cpp.
Referenced by runService().
bool stopService | ( | SC_HANDLE | service | ) |
Definition at line 225 of file tftpd.cpp.
Referenced by main(), and uninstallService().
void uninstallService | ( | ) |
Definition at line 296 of file tftpd.cpp.
Referenced by main().
MYWORD activeThreads =0 |
Definition at line 60 of file tftpd.cpp.
Referenced by cleanReq(), processRequest(), runProg(), and ServiceMain().
MYWORD blksize = 65464 |
Definition at line 45 of file tftpd.cpp.
Referenced by init(), and processRequest().
HANDLE cEvent |
Definition at line 54 of file tftpd.cpp.
Referenced by cleanReq(), init(), and processRequest().
data2 cfig |
Definition at line 51 of file tftpd.cpp.
Referenced by detectChange(), init(), logMess(), processRequest(), runProg(), and ServiceMain().
Definition at line 57 of file tftpd.cpp.
Referenced by processRequest(), runProg(), and ServiceMain().
Definition at line 35 of file tftpd.cpp.
Referenced by BackgroundCopyJobConstructor(), hls_ref_Moniker_GetDisplayName(), hls_site_Moniker_GetDisplayName(), installService(), ItemMonikerImpl_ParseDisplayName(), and test_GetName().
char fileSep = '\\' |
Definition at line 43 of file tftpd.cpp.
Referenced by init(), and processRequest().
Definition at line 37 of file tftpd.cpp.
Referenced by init(), and test_profile_int().
HANDLE lEvent |
Definition at line 56 of file tftpd.cpp.
Referenced by CChangeNotifyBroker::BrokerNotification(), DoSendData(), DoShellNotify(), DoTestEntry(), GetEventType(), init(), logMess(), CDefView::OnChangeNotify(), OnCopyData(), OnShellNotify(), SHChangeNotifyReceive(), SHChangeNotifyReceiveEx(), SHChangeNotifyTransmit(), WSAAsyncSelect(), and WSPAsyncSelect().
char logBuff[512] |
Definition at line 42 of file tftpd.cpp.
Referenced by detectChange(), init(), logMess(), runProg(), and ServiceMain().
Definition at line 38 of file tftpd.cpp.
Referenced by handle_escape_cmd(), init(), and logMess().
MYWORD minThreads =1 |
Definition at line 59 of file tftpd.cpp.
Referenced by cleanReq(), and init().
data1 network |
Definition at line 49 of file tftpd.cpp.
Referenced by closeConn(), detectChange(), getInterfaces(), init(), processRequest(), runProg(), ServiceMain(), wnet_use_connection(), and wnetInit().
data1 newNetwork |
Definition at line 50 of file tftpd.cpp.
Referenced by init(), and NetBTEnum().
char notFileSep = '/' |
Definition at line 44 of file tftpd.cpp.
Referenced by init(), and processRequest().
char serviceName[] = "TFTPServer" |
Definition at line 34 of file tftpd.cpp.
Referenced by _tryLoadProvider(), FxIFRStart(), FxLibraryCommonRegisterClient(), installService(), IopGetDriverNames(), IopLoadDriver(), main(), MakeService(), PiAttachFilterDriversCallback(), QueryConfig2A(), QueryConfig2W(), runService(), ServiceMain(), and uninstallService().
SERVICE_STATUS serviceStatus |
Definition at line 63 of file tftpd.cpp.
Referenced by ServiceControlHandler(), ServiceMain(), StopDriver(), and stopService().
SERVICE_STATUS_HANDLE serviceStatusHandle = 0 |
Definition at line 64 of file tftpd.cpp.
Referenced by ServiceControlHandler(), and ServiceMain().
HANDLE sEvent |
Definition at line 55 of file tftpd.cpp.
Referenced by init(), processRequest(), runProg(), and ServiceMain().
HANDLE stopServiceEvent = 0 |
Definition at line 65 of file tftpd.cpp.
Referenced by ServiceControlHandler(), and ServiceMain().
char tempbuff[256] |
Definition at line 40 of file tftpd.cpp.
Referenced by init(), logMess(), and processRequest().
HANDLE tEvent |
Definition at line 53 of file tftpd.cpp.
Referenced by init(), processRequest(), runProg(), and ServiceMain().
Definition at line 47 of file tftpd.cpp.
Referenced by processRequest().
MYWORD totalThreads =0 |
Definition at line 58 of file tftpd.cpp.
Referenced by cleanReq(), processRequest(), runProg(), and ServiceMain().