TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
networkHelpers.h File Reference
#include <cstring>
#include <stdlib.h>
#include <time.h>
+ Include dependency graph for networkHelpers.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static std::string socketErrorCode (int code)
 
static std::string socketErrorCode ()
 

Function Documentation

static std::string socketErrorCode ( int  code)
static
64  {
65  LPTSTR formatMsg = NULL;
66 
67  FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
68  FORMAT_MESSAGE_IGNORE_INSERTS |
69  FORMAT_MESSAGE_FROM_SYSTEM,
70  NULL,
71  code,
72  0,
73  (LPTSTR)&formatMsg,
74  0,
75  NULL);
76 
77  return G3D::format("CODE %d: %s\n", code, formatMsg);
78  }
arena_t NULL
Definition: jemalloc_internal.h:624
std::string __cdecl format(const char *fmt...) G3D_CHECK_PRINTF_ARGS
Definition: inftrees.h:24

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static std::string socketErrorCode ( )
static
80  {
81  return socketErrorCode(GetLastError());
82  }
static std::string socketErrorCode(int code)
Definition: networkHelpers.h:64
int GetLastError()
Definition: Common.cpp:70

+ Here is the call graph for this function: