void ServerSession::SendServerType() { MSG_SERVER_TYPE msg; msg.m_byCategory = 0; msg.m_byCategory = 0; msg.m_byServerType = GetServerType(); // AGENT_SERVER Send( (BYTE *)&msg, sizeof(MSG_SERVER_TYPE) ); }
BOOL ServiceBase::StartService() { CLog::GetInstancePtr()->AddLog("*******服务器信息***********"); CLog::GetInstancePtr()->AddLog("服务器地址:%s 监听端口:%d", CGlobalConfig::GetInstancePtr()->m_strIpAddr.c_str(), CGlobalConfig::GetInstancePtr()->m_sPort); CLog::GetInstancePtr()->AddLog("服务器类型:%d 服务器ID:%d", GetServerType(), GetServerID()); CLog::GetInstancePtr()->AddLog("********服务器信息***********"); CLog::GetInstancePtr()->AddLog(""); CLog::GetInstancePtr()->AddLog(""); if(!CNetManager::GetInstancePtr()->Start(this)) { CLog::GetInstancePtr()->AddLog("启动网络层失败"); return FALSE; } CLog::GetInstancePtr()->AddLog("服务器启动成功!"); return TRUE; }
CDBConnParams::EServerType CCPPToolkitConnParams::GetServerType(void) const { EServerType type = GetServerType(GetThis().GetServerName()); return (type == eUnknown) ? CDBConnParamsDelegate::GetServerType() : type; }
/** Get column's SQL type name. @return SQL type name. */ virtual tstring GetSQLTypeName() { return GetSQLTypeName(GetSQLType(GetServerType())); }
/** Get column's SQL type. (_NativeToSQLType in Apache Hive implementation). @return SQL type. */ virtual int GetSQLType() { return GetSQLType(GetServerType()); }
/** Get corresponding field size in bytes. @param Field byte size. */ virtual std::size_t GetFieldByteSize() { return GetFieldByteSize(GetServerType()); }
/** Get maximum display size. @return Display size. */ virtual std::size_t GetMaxDisplaySize() { return GetMaxDisplaySize(GetServerType()); }