代码搜索结果

找到约 10,000 项符合 G 的代码

g_dbmysql.h

/* g_dbmysql.h: interface for the CG_DBMySql class. */ #ifndef __CG_DB_MYSQL_H__ #define __CG_DB_MYSQL_H__ #include "g_platform.h" #include class CG_DBMySql { public: unsi

g_debug.h

/* g_debug.h: interface for the CG_Debug class. */ #ifndef __CG_DEBUG_H__ #define __CG_DEBUG_H__ #include "g_platform.h" #include const int DEFAULT_LOG_BUF_SIZE = 1024; cla

g_cmdpool.h

// g_cmdpool.h: interface for the CG_CmdPool class. #ifndef __CG_CMD_POOL_H__ #define __CG_CMD_POOL_H__ // use stl #include #include using namespace std; struct SCmd {

g_netsocket.cpp

/* g_netsocket.cpp: implementation of the CG_NetSocket class. */ #include "g_netsocket.h" #include #ifdef WIN32 #pragma comment(lib, "Ws2_32.lib") #endif int CG_NetSocket::m_n

g_tcpsession.h

/* g_tcpsession.h: interface for the CG_TCPSession class. */ #ifndef __CG_TCP_SESSION_H__ #define __CG_TCP_SESSION_H__ #include "g_netsocket.h" #include "g_netpacket.h" const int MAX_BUFF

g_cmdpacket.h

/* g_CmdPacket.h: interface for the CG_CmdPacket class. */ #ifndef __CG_CMD_PACKET_H__ #define __CG_CMD_PACKET_H__ #include "g_platform.h" /* define default packet buffer size */ const in

g_cmdpool.cpp

// g_cmdpool.cpp: implementation of the CG_CmdPool class. #include "g_cmdpool.h" CG_CmdPool::CG_CmdPool() { } CG_CmdPool::~CG_CmdPool() { } bool CG_CmdPool::AddCmd(SCmd *cmd) {

g_debug.cpp

/* g_debug.cpp: implementation of the CG_Debug class. */ #include "g_debug.h" CG_Debug::CG_Debug() { m_bInit = false; SetOpt(true,true,true,true,true); m_idx = 0; } CG_Debug::

g_tcpsession.cpp

/* g_tcpsession.cpp: implementation of the CG_TCPSession class. */ #include "g_tcpsession.h" #include #include CG_CmdPacket CG_TCPSession::m_sendCmdPkt; CG_CmdPacket CG

g_platform.cpp

#include "g_platform.h" void Sys_Log(char *format,...) { va_list args; va_start(args, format); char buf[256]; VSNPRINTF(buf,255,format,args); printf("%s\r\n",buf); /* write to file