connectioninfo.cpp

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C++ 代码 · 共 46 行

CPP
46
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : ConnectionInfo.cpp// Written by  : excel96// Description : //////////////////////////////////////////////////////////////////////////////#include "ConnectionInfo.h"#include "StringStream.h"ConnectionInfo::ConnectionInfo() 	throw(){ 	__BEGIN_TRY	m_Key                = 0;	m_ExpireTime.tv_sec  = 0; 	m_ExpireTime.tv_usec = 0; 	__END_CATCH}ConnectionInfo::~ConnectionInfo() 	throw() {	__BEGIN_TRY	__END_CATCH}string ConnectionInfo::toString() const 	throw() {	__BEGIN_TRY	StringStream msg;	msg << "ConnectionInfo(ClientIP:" << m_ClientIP 		<< ",PlayerID:" << m_PlayerID		<< ",PCName:" << m_PCName		<< ",ExpireTime:" << m_ExpireTime.tv_sec << "." << m_ExpireTime.tv_usec 		<< ",KEY: " << m_Key << ")";	return msg.toString();	__END_CATCH}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?