Changeset 62 in Main for trunk/Server/server.c


Ignore:
Timestamp:
Sep 19, 2024, 5:02:26 AM (2 months ago)
Author:
Nishi
Message:

add installer.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r61 r62  
    3232#include <winsock2.h>
    3333#include <process.h>
     34#include <windows.h>
    3435
    3536#include "strptime.h"
     
    697698}
    698699
     700#ifdef SERVICE
     701extern SERVICE_STATUS status;
     702extern SERVICE_STATUS_HANDLE status_handle;
     703#endif
     704
    699705void tw_server_loop(void) {
    700706        struct timeval tv;
     
    710716                if(ret == -1) {
    711717                        break;
     718                }else if(ret == 0){
     719#ifdef SERVICE
     720                        if(status.dwCurrentState == SERVICE_STOP_PENDING){
     721                                break;
     722                        }
     723#endif
    712724                } else if(ret > 0) {
    713725                        /* connection */
Note: See TracChangeset for help on using the changeset viewer.