Rev | Line | |
---|
[4] | 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 |
|
---|
[7] | 6 | #include <stdint.h>
|
---|
| 7 |
|
---|
| 8 | /* I don't think you would listen to 1024 ports */
|
---|
| 9 | #define MAX_PORTS 1024
|
---|
| 10 |
|
---|
[6] | 11 | struct tw_config_entry {};
|
---|
| 12 |
|
---|
| 13 | struct tw_config {
|
---|
[7] | 14 | uint64_t ports[MAX_PORTS + 1]; /* If port & (1 << 32) is non-zero, it is SSL */
|
---|
[6] | 15 | struct tw_config_entry root;
|
---|
| 16 | };
|
---|
| 17 |
|
---|
| 18 | void tw_config_init(void);
|
---|
[4] | 19 | int tw_config_read(const char* path);
|
---|
| 20 |
|
---|
| 21 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.