2023-12-30 23:26:35 +01:00
|
|
|
#ifndef CONFIG_H
|
2023-12-30 23:29:34 +01:00
|
|
|
#define CONFIG_H
|
2023-12-30 23:26:35 +01:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
typedef struct UserConfig {
|
|
|
|
int port;
|
|
|
|
char* addr;
|
|
|
|
} UserConfig;
|
|
|
|
|
|
|
|
extern UserConfig config;
|
|
|
|
|
|
|
|
void getUserConfig(int argc, char* argv[]);
|
|
|
|
|
|
|
|
#endif // CONFIG_H
|