Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
clientmain.cpp File Reference
#include "commonincludes.hpp"
#include "stuncore.h"
#include "socketrole.h"
#include "stunsocket.h"
#include "cmdlineparser.h"
#include "recvfromex.h"
#include "resolvehostname.h"
#include "stringhelper.h"
#include "adapters.h"
#include "oshelper.h"
#include "prettyprint.h"
#include "stunclient.txtcode"
#include "stunclient_lite.txtcode"
Include dependency graph for clientmain.cpp:

Go to the source code of this file.

Classes

struct  ClientCmdLineArgs
 
struct  ClientSocketConfig
 

Functions

void DumpConfig (StunClientLogicConfig &config, ClientSocketConfig &socketConfig)
 
void PrintUsage (bool fSummaryUsage)
 
HRESULT CreateConfigFromCommandLine (ClientCmdLineArgs &args, StunClientLogicConfig *pConfig, ClientSocketConfig *pSocketConfig)
 
void NatBehaviorToString (NatBehavior behavior, std::string *pStr)
 
void NatFilteringToString (NatFiltering filtering, std::string *pStr)
 
void DumpResults (StunClientLogicConfig &config, StunClientResults &results)
 
void TcpClientLoop (StunClientLogicConfig &config, ClientSocketConfig &socketconfig)
 
HRESULT UdpClientLoop (StunClientLogicConfig &config, const ClientSocketConfig &socketconfig)
 
int main (int argc, char **argv)
 

Function Documentation

HRESULT CreateConfigFromCommandLine ( ClientCmdLineArgs args,
StunClientLogicConfig pConfig,
ClientSocketConfig pSocketConfig 
)

Definition at line 90 of file clientmain.cpp.

void DumpConfig ( StunClientLogicConfig config,
ClientSocketConfig socketConfig 
)

Definition at line 56 of file clientmain.cpp.

void DumpResults ( StunClientLogicConfig config,
StunClientResults results 
)

Definition at line 291 of file clientmain.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 604 of file clientmain.cpp.

void NatBehaviorToString ( NatBehavior  behavior,
std::string *  pStr 
)

Definition at line 261 of file clientmain.cpp.

void NatFilteringToString ( NatFiltering  filtering,
std::string *  pStr 
)

Definition at line 276 of file clientmain.cpp.

void PrintUsage ( bool  fSummaryUsage)

Definition at line 74 of file clientmain.cpp.

void TcpClientLoop ( StunClientLogicConfig config,
ClientSocketConfig socketconfig 
)

Definition at line 330 of file clientmain.cpp.

HRESULT UdpClientLoop ( StunClientLogicConfig config,
const ClientSocketConfig socketconfig 
)

Definition at line 482 of file clientmain.cpp.