|
#include "StdAfx.h"
#include "ServerProtocol.h"
#include "ProtobufPacket.h"
CServerProtocol::CServerProtocol(void)
{
}
CServerProtocol::~CServerProtocol(void)
{
}
PushFramework::IncomingPacket* CServerProtocol::createIncomingPacketFromServiceId( int serviceId )
{
switch (serviceId)
{
case LoginRequestID:
return new ProtobufPacket<LoginRequest>(serviceId);
break;
case DataInfoRequestID:
return new ProtobufPacket<DataInfoRequest>(serviceId);
break;
default:
return NULL;
break;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.