Changeset 62 in Main for trunk/Server/server.c
- Timestamp:
- Sep 19, 2024, 5:02:26 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r61 r62 32 32 #include <winsock2.h> 33 33 #include <process.h> 34 #include <windows.h> 34 35 35 36 #include "strptime.h" … … 697 698 } 698 699 700 #ifdef SERVICE 701 extern SERVICE_STATUS status; 702 extern SERVICE_STATUS_HANDLE status_handle; 703 #endif 704 699 705 void tw_server_loop(void) { 700 706 struct timeval tv; … … 710 716 if(ret == -1) { 711 717 break; 718 }else if(ret == 0){ 719 #ifdef SERVICE 720 if(status.dwCurrentState == SERVICE_STOP_PENDING){ 721 break; 722 } 723 #endif 712 724 } else if(ret > 0) { 713 725 /* connection */
Note:
See TracChangeset
for help on using the changeset viewer.