Fossil

Diff
Login

Differences From Artifact [8d0bd8f52c]:

To Artifact [1efa74a8b5]:


127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
127
128
129
130
131
132
133





134
135
136
137
138
139
140







-
-
-
-
-







  if( in ) fclose(in);
  closesocket(p->s);
  file_delete(zRequestFName);
  file_delete(zReplyFName);
  free(p);
}

#if !defined(UNICODE)
#  define fossil_unicode_to_utf8 fossil_mbcs_to_utf8
#  define fossil_utf8_to_unicode fossil_utf8_to_mbcs
#endif

/*
** 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 */
  const char *zBrowser,     /* Command to launch browser.  (Or NULL) */
559
560
561
562
563
564
565





566
567
568
569
570
571
572
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572







+
+
+
+
+







**
*/
void cmd_win32_service(void){
  int n;
  const char *zMethod;
  const char *zSvcName = "Fossil-DSCM";    /* Default service name */

#ifdef _WIN32
  if( !g.isNT ) {
    fossil_fatal("%s command not support on Windows 9x", g.argv[1]);
  }
#endif
  if( g.argc<3 ){
    usage("create|delete|show|start|stop ...");
  }
  zMethod = g.argv[2];
  n = strlen(zMethod);

  if( strncmp(zMethod, "create", n)==0 ){