first commit
This commit is contained in:
21
CS4210/Project 3/server/src/include/settings.h
Normal file
21
CS4210/Project 3/server/src/include/settings.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef _SETTINGS_H_
|
||||
#define _SETTINGS_H_
|
||||
|
||||
/////////////
|
||||
// Globals //
|
||||
/////////////
|
||||
|
||||
typedef struct {
|
||||
char* LOAD_DIR; // Server home directory
|
||||
char* CONFIG_FILE; // Config File, should be constant
|
||||
int MAX_THREADS; // Maximum number of threads to spawn
|
||||
unsigned short PORT_NUMBER; // Port number to use
|
||||
char useSHMEM;
|
||||
} settings_t;
|
||||
///////////////
|
||||
// Functions //
|
||||
///////////////
|
||||
|
||||
int init_settings(settings_t *s, int, char**);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user