Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
commonincludes.hpp File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/time.h>
#include <stdlib.h>
#include <memory.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <stdarg.h>
#include <math.h>
#include <sys/termios.h>
#include <boost/shared_ptr.hpp>
#include <boost/scoped_array.hpp>
#include <boost/scoped_ptr.hpp>
#include <map>
#include <vector>
#include <list>
#include <string>
#include <poll.h>
#include <pthread.h>
#include <boost/assert.hpp>
#include "hresult.h"
#include "chkmacros.h"
#include "refcountobject.h"
#include "objectfactory.h"
#include "logger.h"
Include dependency graph for commonincludes.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __APPLE_USE_RFC_3542
 
#define BOOST_DISABLE_ASSERTS
 
#define BOOST_VERIFY(expr)   ((void)(expr))
 
#define ASSERT(expr)   BOOST_ASSERT(expr)
 
#define VERIFY(expr)   BOOST_VERIFY(expr)
 
#define ASSERTMSG(expr, msg)   BOOST_ASSERT_MSG (expr, msg)
 
#define ARRAYSIZE(arr)   (sizeof(arr)/sizeof(*arr))
 
#define COMPILE_TIME_ASSERT(x)   {char name$$[(x)?1:-1]; cta_noop(name$$);}
 
#define UNREFERENCED_VARIABLE(unrefparam)   ((void)unrefparam)
 

Functions

void cta_noop (const char *psz)
 

Variables

You_Didnt_Define_DEBUG_Or_NDEBUG g_compilererror [-1]
 

Macro Definition Documentation

#define __APPLE_USE_RFC_3542

Definition at line 22 of file commonincludes.hpp.

#define ARRAYSIZE (   arr)    (sizeof(arr)/sizeof(*arr))

Definition at line 114 of file commonincludes.hpp.

#define ASSERT (   expr)    BOOST_ASSERT(expr)

Definition at line 110 of file commonincludes.hpp.

#define ASSERTMSG (   expr,
  msg 
)    BOOST_ASSERT_MSG (expr, msg)

Definition at line 112 of file commonincludes.hpp.

#define BOOST_DISABLE_ASSERTS

Definition at line 86 of file commonincludes.hpp.

#define BOOST_VERIFY (   expr)    ((void)(expr))

Definition at line 107 of file commonincludes.hpp.

#define COMPILE_TIME_ASSERT (   x)    {char name$$[(x)?1:-1]; cta_noop(name$$);}

Definition at line 121 of file commonincludes.hpp.

#define UNREFERENCED_VARIABLE (   unrefparam)    ((void)unrefparam)

Definition at line 124 of file commonincludes.hpp.

#define VERIFY (   expr)    BOOST_VERIFY(expr)

Definition at line 111 of file commonincludes.hpp.

Function Documentation

void cta_noop ( const char *  psz)
inline

Definition at line 116 of file commonincludes.hpp.

Variable Documentation

You_Didnt_Define_DEBUG_Or_NDEBUG g_compilererror[-1]

Definition at line 73 of file commonincludes.hpp.