- Timestamp:
- Sep 23, 2024, 8:37:53 PM (8 weeks ago)
- Location:
- trunk/Server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r140 r141 526 526 int ret = mod_req(&tools, &req, &res); 527 527 int co = ret & 0xff; 528 if(co == _TW_MODULE_PASS) continue; 529 if(co == _TW_MODULE_STOP) { 528 if(co == _TW_MODULE_PASS) { 529 continue; 530 } else if(co == _TW_MODULE_STOP) { 531 /* Handle response here ... */ 530 532 res._processed = true; 531 533 break; 532 } 533 if(co == _TW_MODULE_ERROR) { 534 } else if(co == _TW_MODULE_STOP2) { 535 res._processed = true; 536 break; 537 } else if(co == _TW_MODULE_ERROR) { 534 538 tw_http_error(s, sock, (ret & 0xffff00) >> 8, name, port, vhost_entry); 535 539 break; -
trunk/Server/tw_module.h
r140 r141 19 19 _TW_MODULE_PASS = 0, /* Pass to the next module. */ 20 20 _TW_MODULE_STOP, /* Do not pass to the next module. */ 21 _TW_MODULE_STOP2, /* Do not pass to the next module, and do not handle response. */ 21 22 _TW_MODULE_ERROR, /* Error, and do not pass to the next module. */ 22 23 … … 28 29 #define TW_MODULE_PASS _TW_MODULE_PASS 29 30 #define TW_MODULE_STOP _TW_MODULE_STOP 31 #define TW_MODULE_STOP2 _TW_MODULE_STOP2 30 32 #define TW_MODULE_ERROR(x) (_TW_MODULE_ERROR | ((x) << 8)) 31 33 -
trunk/Server/tw_version.h
r140 r141 8 8 #endif 9 9 10 #define TW_VERSION "1.0 5A\0"10 #define TW_VERSION "1.06\0" 11 11 12 12 const char* tw_get_version(void);
Note:
See TracChangeset
for help on using the changeset viewer.