Implemented Util::Config::serveForkedSocket(), added Socket::Connection::drop() function for dropping unused sockets.
This commit is contained in:
parent
92b7a7534d
commit
d81bc24155
4 changed files with 95 additions and 17 deletions
|
@ -33,9 +33,9 @@ namespace Util {
|
|||
long long int getInteger(std::string optname);
|
||||
bool getBool(std::string optname);
|
||||
void activate();
|
||||
int serveThreadedSocket(void (*callback)(Socket::Connection & S));
|
||||
int serveForkedSocket(void (*callback)(Socket::Connection & S));
|
||||
int servePlainSocket(void (*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));
|
||||
void addBasicConnectorOptions(JSON::Value & capabilities);
|
||||
void addConnectorOptions(int port, JSON::Value & capabilities);
|
||||
};
|
||||
|
@ -53,4 +53,3 @@ namespace Util {
|
|||
void Daemonize();
|
||||
|
||||
}
|
||||
;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue