Added some performance logging capabilities and socket cleanup for new broadcast thread sockets

This commit is contained in:
Mark Vejvoda
2010-04-15 01:19:00 +00:00
parent 86f0b8adb0
commit 30c4eb2b96
12 changed files with 108 additions and 38 deletions

View File

@@ -120,7 +120,8 @@ public:
static string getHostName();
static string getIp();
bool isSocketValid(PLATFORM_SOCKET *validateSocket=NULL) const;
bool isSocketValid() const;
static bool isSocketValid(const PLATFORM_SOCKET *validateSocket);
protected:
static void throwException(string str);

View File

@@ -34,11 +34,13 @@ public:
enum DebugType {
debugSystem,
debugNetwork
debugNetwork,
debugPerformance
};
static bool enableDebugText;
static bool enableNetworkDebugInfo;
static bool enablePerformanceDebugInfo;
static const char *debugLogFile;
static void OutputDebug(DebugType type, const char *fmt, ...);