Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

evarequeststart.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by yunfan                                          *
00003  *   yunfan_zg@163.com                                                     *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020  
00021 #ifndef LIBCUSTOMPIC_EVAREQUESTSTART_H
00022 #define LIBCUSTOMPIC_EVAREQUESTSTART_H 
00023 
00024 #include "evapicpacket.h"
00025 
00026 class EvaRequestStartPacket : public EvaPicOutPacket {
00027 public:
00028         EvaRequestStartPacket();
00029         EvaRequestStartPacket(const EvaRequestStartPacket &rhs);
00030         virtual ~EvaRequestStartPacket(){};
00031         
00032         EvaRequestStartPacket &operator=(const EvaRequestStartPacket &rhs);
00033         
00034         void setSessionID(const unsigned int id) { sessionID= id;}
00035         void setMd5(const unsigned char *value);
00036         void setRequestSend( const bool ok) { requestSend = ok; }
00037         
00038         const unsigned int getSessionID() const { return sessionID; }
00039         const unsigned char *getMd5() const { return md5; }
00040         const bool isRequestSend() const { return requestSend; }
00041 protected:
00042         virtual int putBody(unsigned char *buf);
00043 private:
00044         unsigned int sessionID;
00045         unsigned char md5[16];
00046         bool requestSend;
00047 };
00048 
00049 class EvaRequestStartReplyPacket: public EvaPicInPacket {
00050 public:
00051         EvaRequestStartReplyPacket(){};
00052         EvaRequestStartReplyPacket(unsigned char *buf, int len);
00053         EvaRequestStartReplyPacket(const EvaRequestStartReplyPacket &rhs);
00054         virtual ~EvaRequestStartReplyPacket(){};
00055         
00056         EvaRequestStartReplyPacket &operator=(const EvaRequestStartReplyPacket &rhs);
00057         
00058         const unsigned int getSessionID() const { return sessionID; }
00059 protected:
00060         virtual void parseBody();
00061 private:
00062         unsigned int sessionID;
00063 };
00064 
00065 #endif
00066 
00067  

Generated on Mon May 15 20:48:42 2006 for libeva by  doxygen 1.4.4