135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
-
-
-
+
+
+
|
/*
** Start a listening socket and process incoming HTTP requests on
** that socket.
*/
void win32_http_server(
int mnPort, int mxPort, /* Range of allowed TCP port numbers */
char *zBrowser, /* Command to launch browser. (Or NULL) */
char *zStopper, /* Stop server when this file is exists (Or NULL) */
char *zNotFound /* The --notfound option, or NULL */
const char *zBrowser, /* Command to launch browser. (Or NULL) */
const char *zStopper, /* Stop server when this file is exists (Or NULL) */
const char *zNotFound /* The --notfound option, or NULL */
){
WSADATA wd;
SOCKET s = INVALID_SOCKET;
SOCKADDR_IN addr;
int idCnt = 0;
int iPort = mnPort;
char *zNotFoundOption;
|