Refactored config library to make threaded/forked sockets more re-usable.

This commit is contained in:
Thulinma 2014-02-23 14:47:37 +01:00
parent 069ae2c855
commit 21fe9a5910
2 changed files with 43 additions and 33 deletions

View file

@ -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));