#include "commonincludes.hpp"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include "stuncore.h"
#include "server.h"
#include "tcpserver.h"
#include "adapters.h"
#include "cmdlineparser.h"
#include <getopt.h>
#include "prettyprint.h"
#include "oshelper.h"
#include "stringhelper.h"
#include "stunserver.txtcode"
#include "stunserver_lite.txtcode"
#include "resolvehostname.h"
Go to the source code of this file.
|
void | PrintUsage (bool fSummaryUsage) |
|
char * | strerror_helper (int result, char *msg, int err) |
|
char * | strerror_helper (char *pszResult, char *, int) |
|
void | LogHR (uint16_t level, HRESULT hr) |
|
void | DumpStartupArgs (StartupArgs &args) |
|
void | DumpConfig (CStunServerConfig &config) |
|
HRESULT | ResolveAdapterName (bool fPrimary, int family, std::string &strAdapterName, uint16_t port, CSocketAddress *pAddr) |
|
HRESULT | BuildServerConfigurationFromArgs (StartupArgs &argsIn, CStunServerConfig *pConfigOut) |
|
HRESULT | ParseCommandLineArgs (int argc, char **argv, int startindex, StartupArgs *pStartupArgs) |
|
HRESULT | LoadConfigsFromFile (const std::string &filename, std::vector< StartupArgs > &configurations) |
|
HRESULT | BlockSignal (int sig) |
|
void | WaitForAppExitSignal () |
|
HRESULT | StartUDP (CRefCountedPtr< CStunServer > &spServer, CStunServerConfig &config) |
|
HRESULT | StartTCP (CRefCountedPtr< CTCPServer > &spTCPServer, CStunServerConfig &config) |
|
int | main (int argc, char **argv) |
|
#define PRINTARG |
( |
|
member | ) |
Logging::LogMsg(LL_DEBUG, "%s = %s", #member, args.member.length() ? args.member.c_str() : "<empty>"); |
HRESULT LoadConfigsFromFile |
( |
const std::string & |
filename, |
|
|
std::vector< StartupArgs > & |
configurations |
|
) |
| |
void LogHR |
( |
uint16_t |
level, |
|
|
HRESULT |
hr |
|
) |
| |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
HRESULT ParseCommandLineArgs |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
int |
startindex, |
|
|
StartupArgs * |
pStartupArgs |
|
) |
| |
void PrintUsage |
( |
bool |
fSummaryUsage | ) |
|
HRESULT ResolveAdapterName |
( |
bool |
fPrimary, |
|
|
int |
family, |
|
|
std::string & |
strAdapterName, |
|
|
uint16_t |
port, |
|
|
CSocketAddress * |
pAddr |
|
) |
| |
char* strerror_helper |
( |
int |
result, |
|
|
char * |
msg, |
|
|
int |
err |
|
) |
| |
char* strerror_helper |
( |
char * |
pszResult, |
|
|
char * |
, |
|
|
int |
|
|
) |
| |
void WaitForAppExitSignal |
( |
| ) |
|