mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3772 d0543943-73ff-0310-b7d9-9358b9ac24b2
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
#ifndef SERVER_ABYSS_HPP_INCLUDED
|
|
#define SERVER_ABYSS_HPP_INCLUDED
|
|
#include "xmlrpc-c/base.hpp"
|
|
#include "abyss.h"
|
|
|
|
namespace xmlrpc_c {
|
|
|
|
class serverAbyss {
|
|
|
|
public:
|
|
serverAbyss(
|
|
xmlrpc_c::registry const& registry,
|
|
unsigned int const portNumber = 8080,
|
|
std::string const& logFileName = "",
|
|
unsigned int const keepaliveTimeout = 0,
|
|
unsigned int const keepaliveMaxConn = 0,
|
|
unsigned int const timeout = 0,
|
|
bool const dontAdvertise = false
|
|
);
|
|
~serverAbyss();
|
|
|
|
void run();
|
|
|
|
private:
|
|
// We rely on the creator to keep the registry object around as
|
|
// long as the server object is, so that this pointer is valid.
|
|
// We need to use some kind of automatic handle instead.
|
|
|
|
const xmlrpc_c::registry * registryP;
|
|
|
|
std::string configFileName;
|
|
std::string logFileName;
|
|
unsigned int portNumber;
|
|
unsigned int keepaliveTimeout;
|
|
unsigned int keepaliveMaxConn;
|
|
unsigned int timeout;
|
|
bool dontAdvertise;
|
|
};
|
|
|
|
|
|
void
|
|
server_abyss_set_handlers(TServer * const srvP,
|
|
xmlrpc_c::registry const& registry);
|
|
|
|
} // namespace
|
|
|
|
#endif
|