-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinetserv.h
144 lines (114 loc) · 3.17 KB
/
inetserv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// LoraBBS Version 2.99 Free Edition
// Copyright (C) 1987-98 Marco Maccaferri
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include "_ldefs.h"
#include "combase.h"
#include "lora_api.h"
#include "lora.h"
class TFTP
{
public:
TFTP ();
~TFTP ();
CHAR ClientIP[16];
class TConfig *Cfg;
class TTcpip *Tcp;
class TLog *Log;
USHORT FileExist (PSZ pszFile);
VOID GetCommand ();
USHORT Login ();
VOID ReadFile (PSZ pszCode, PSZ pszFile);
VOID Run ();
private:
USHORT Valid, Anonymous, Binary, DataPort;
USHORT Known, Protected;
PSZ Month[12];
CHAR Response[128], Temp[4096];
struct dosdate_t date;
struct dostime_t d_time;
class TAddress Addr;
class TTcpip *Data;
class TUser *User;
class TNodes *Nodes;
class TFileData *Area;
class TFileBase *Files;
class TOutbound *Outbound;
};
// ----------------------------------------------------------------------
class TWeb
{
public:
TWeb ();
~TWeb ();
class TConfig *Cfg;
class TLog *Log;
class TTcpip *Tcp;
VOID GetRequest ();
VOID Run ();
VOID SendFile (PSZ File, PSZ MimeType = NULL);
VOID URLNotFound (PSZ URL);
private:
CHAR Temp[2048];
CHAR Request[128];
CHAR Location[128];
};
// ----------------------------------------------------------------------
typedef struct {
USHORT Index;
ULONG Number;
USHORT Deleted;
ULONG Size;
} MAILINDEX;
class TPOP3
{
public:
TPOP3 ();
~TPOP3 ();
class TConfig *Cfg;
class TTcpip *Tcp;
class TLog *Log;
VOID GetCommand ();
VOID Run ();
private:
CHAR Response[256], Temp[2048];
class TUser *User;
class TMsgBase *Msg;
class TCollection MailDrop;
MAILINDEX Idx;
};
// ----------------------------------------------------------------------
class TNNTP
{
public:
TNNTP ();
~TNNTP ();
class TConfig *Cfg;
class TTcpip *Tcp;
class TLog *Log;
VOID GetCommand ();
VOID Run ();
VOID SendBody ();
VOID SendHeader (USHORT Termination);
private:
CHAR Response[256], Temp[2048];
class TMsgBase *Msg;
};
// ----------------------------------------------------------------------
#if defined(__OS2__)
MRESULT EXPENTRY InternetDlgProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
#elif defined(__NT__)
BOOL CALLBACK InternetDlgProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
#endif