Galena :: xfirelib

This is a static archive of the original page - xfirelib is no longer maintained.
Navigation
Home
Board
Bug Tracker
Downloads

XFireGateway





User

You are currently not logged in.
Login
Register


0 logged in users.
21 active guests.


Project: xfirelib

Home
Board

recvstatusmessagepacket.h

Go to the documentation of this file.
00001 /*
00002  *  xfirelib - C++ Library for the xfire protocol.
00003  *  Copyright (C) 2006 by
00004  *          Beat Wolf <asraniel@fryx.ch> / http://gfire.sf.net
00005  *          Herbert Poul <herbert.poul@gmail.com> / http://goim.us
00006  *    http://xfirelib.sphene.net
00007  *
00008  *  This program is free software; you can redistribute it and/or modify
00009  *  it under the terms of the GNU General Public License as published by
00010  *  the Free Software Foundation; either version 2 of the License, or
00011  *  (at your option) any later version.
00012  *
00013  *  This program is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  *  GNU General Public License for more details.
00017  *
00018  *  You should have received a copy of the GNU General Public License
00019  *  along with this program; if not, write to the Free Software
00020  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00021  */
00022 
00023 #ifndef __RECVMESSAGEPACKET_H
00024 #define __RECVMESSAGEPACKET_H
00025 
00026 #define XFIRE_RECV_STATUSMESSAGE_PACKET_ID 154
00027 
00028 #include "xfirerecvpacketcontent.h"
00029 #include <string>
00030 #include <vector>
00031 
00032 namespace xfirelib {
00033 
00034   class RecvStatusMessagePacket : public XFireRecvPacketContent {
00035   public:
00036     RecvStatusMessagePacket();
00037     XFirePacketContent *newPacket() { return new RecvStatusMessagePacket; }
00038     int getPacketId() { return XFIRE_RECV_STATUSMESSAGE_PACKET_ID; }
00039 
00040     void parseContent(char *buf, int length, int numberOfAtts);
00041 
00042     std::vector<char *> *sids;
00043     std::vector<std::string> *msgs;
00044   private:
00045     int readStrings(std::vector<std::string> *strings, char *buf, int index);
00046   };
00047 
00048 };
00049 
00050 
00051 #endif

Powered by Galena
This page is powered by Galena. - Get your own free "CMS" (Wiki, Board, Todolist/Buglist-Tracker)
Author of Galena: Herbert Poul - kahless+galena@sphene.net - jabber id: kahless@sphene.net - icq uin: 50647169
Page generated in 16 millisecs