Refactored config library to make threaded/forked sockets more re-usable.
This commit is contained in:
parent
069ae2c855
commit
21fe9a5910
2 changed files with 43 additions and 33 deletions
|
@ -33,6 +33,8 @@ namespace Util {
|
|||
long long int getInteger(std::string optname);
|
||||
bool getBool(std::string optname);
|
||||
void activate();
|
||||
int threadServer(Socket::Server & server_socket, int (*callback)(Socket::Connection & S));
|
||||
int forkServer(Socket::Server & server_socket, int (*callback)(Socket::Connection & S));
|
||||
int serveThreadedSocket(int (*callback)(Socket::Connection & S));
|
||||
int serveForkedSocket(int (*callback)(Socket::Connection & S));
|
||||
int servePlainSocket(int (*callback)(Socket::Connection & S));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue