|
#include "StdAfx.h"
#include "ChatClientProtocol.h"
#include "DirectChatResponse.h"
#include "JoinRoomResponse.h"
#include "LoginResponse.h"
#include "ParticipantInResponse.h"
#include "ParticipantOutResponse.h"
#include "RoomChatResponse.h"
#include "RoomsResponse.h"
#include "LoginPuzzleResponse.h"
ChatClientProtocol::ChatClientProtocol(void)
{
registerPacketTemplate(DirectChatResponseID, new DirectChatResponse);
registerPacketTemplate(JoinRoomResponseID, new JoinRoomResponse);
registerPacketTemplate(LoginResponseID, new LoginResponse);
registerPacketTemplate(ParticipantInResponseID, new ParticipantInResponse);
registerPacketTemplate(ParticipantOutResponseID, new ParticipantOutResponse);
registerPacketTemplate(RoomChatResponseID, new RoomChatResponse);
registerPacketTemplate(RoomsResponseID, new RoomsResponse);
registerPacketTemplate(LoginPuzzleResponseID, new LoginPuzzleResponse);
}
ChatClientProtocol::~ChatClientProtocol(void)
{
}
|
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.