RelayConnect.cpp
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- // RelayConnect.cpp: implementation of the CRelayConnect class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "Global.h"
- #include "RelayConnect.h"
- #include "RelayServer.h"
- #include "DealRelay.h"
- #include "S3Relay.h"
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CRelayConnect::CRelayConnect(CRelayServer* pRelayServer, unsigned long id)
- : CNetConnect(pRelayServer, id)
- {
- }
- CRelayConnect::~CRelayConnect()
- {
- }
- void CRelayConnect::OnClientConnectCreate()
- {
- rTRACE("relay connect create: %s", _ip2a(GetIP()));
- }
- void CRelayConnect::OnClientConnectClose()
- {
- rTRACE("relay connect close: %s", _ip2a(GetIP()));
- }
- void CRelayConnect::RecvPackage(const void* pData, size_t size)
- {
- dealrelay::DoRecvPackage(this, pData, size);
- }