// $Id: SUdpPacket.h 2668 2012-02-25 02:32:44Z matevz $ // Copyright (C) 1999-2008, Matevz Tadel. All rights reserved. // This file is part of GLED, released under GNU General Public License version 2. // For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/. #ifndef Net1_SUdpPacket_H #define Net1_SUdpPacket_H #include #include "Gled/GTime.h" #include "Stones/SRefCounted.h" class TBuffer; class SUdpPacket : public SRefCountedNV { // Not implemented public: GTime mRecvTime; Int_t mBuffLen; UShort_t mAddrLen; UShort_t mPort; UChar_t mAddr[16]; UChar_t *mBuff; //[mBuffLen] SUdpPacket(); SUdpPacket(const GTime& t, UChar_t* addr, UShort_t addr_len, UShort_t port, UChar_t* buff, Int_t buff_len); ~SUdpPacket(); SRefCountedNV_DecRefCount_macro void NetStreamer(TBuffer& b); Int_t NetBufferSize() const; UInt_t Ip4AsUInt() const; #include "SUdpPacket.h7" ClassDefNV(SUdpPacket, 1); }; // endclass SUdpPacket #endif