1 | /*
|
---|
2 | Copyright (C) 1996
|
---|
3 |
|
---|
4 | This program is free software; you can redistribute it and/or modify
|
---|
5 | it under the terms of the GNU General Public License as published by
|
---|
6 | the Free Software Foundation; either version 2 of the License, or
|
---|
7 | (at your option) any later version.
|
---|
8 |
|
---|
9 | This program is distributed in the hope that it will be useful,
|
---|
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
12 | GNU General Public License for more details.
|
---|
13 |
|
---|
14 | You should have received a copy of the GNU General Public License
|
---|
15 | along with this program; if not, write to the Free Software
|
---|
16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
17 |
|
---|
18 | The author can be contacted via Email at [email protected]
|
---|
19 | */
|
---|
20 | #define HTTP_SERVER_MSG WM_USER + 23
|
---|
21 |
|
---|
22 | /*
|
---|
23 | Function Name: Start HTTP Server
|
---|
24 | Purpose: Starts the HTTP server. Inits Winsock, MIME, loads registry stuff,
|
---|
25 | etc.
|
---|
26 | Parameters:
|
---|
27 | PassedMsgWindow - The handle of the window that handles messages. Needed
|
---|
28 | to setup WSASelect notification of socket events and
|
---|
29 | to send a shutdown message on error.
|
---|
30 | */
|
---|
31 | // returns 0 on success, and a WSA error otherwise
|
---|
32 | int StartHTTPServer(HWND PassedMsgWindow);
|
---|
33 |
|
---|
34 | /*
|
---|
35 | Function Name: End HTTP Server
|
---|
36 | Purpose: Ends the HTTP server. Cleans up MIME, users, etc.
|
---|
37 | */
|
---|
38 | void EndHTTPServer();
|
---|
39 |
|
---|
40 | /*
|
---|
41 | Function Name: Process HTTP Server Message
|
---|
42 | Purpose: Processes HTTP_SERVER_MSG messages.
|
---|
43 | Parameters:
|
---|
44 | Socket - The socket the message is regarding (WPARAM)
|
---|
45 | MsgInfo - The messsage (LPARAM)
|
---|
46 | */
|
---|
47 | void ProcessHTTPServerMsg(WPARAM Socket, LPARAM MsgInfo);
|
---|