source: Main/trunk/Server/tw_config.h@ 11

Last change on this file since 11 was 7, checked in by Nishi, on Sep 13, 2024 at 7:40:53 PM

recognizes listen/listenssl now

  • Property svn:keywords set to Id
File size: 392 bytes
Line 
1/* $Id: tw_config.h 7 2024-09-13 10:40:53Z nishi $ */
2
3#ifndef __TW_CONFIG_H__
4#define __TW_CONFIG_H__
5
6#include <stdint.h>
7
8/* I don't think you would listen to 1024 ports */
9#define MAX_PORTS 1024
10
11struct tw_config_entry {};
12
13struct tw_config {
14 uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
15 struct tw_config_entry root;
16};
17
18void tw_config_init(void);
19int tw_config_read(const char* path);
20
21#endif
Note: See TracBrowser for help on using the repository browser.