ROOT logo
// $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 <Rtypes.h>

#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
 SUdpPacket.h:1
 SUdpPacket.h:2
 SUdpPacket.h:3
 SUdpPacket.h:4
 SUdpPacket.h:5
 SUdpPacket.h:6
 SUdpPacket.h:7
 SUdpPacket.h:8
 SUdpPacket.h:9
 SUdpPacket.h:10
 SUdpPacket.h:11
 SUdpPacket.h:12
 SUdpPacket.h:13
 SUdpPacket.h:14
 SUdpPacket.h:15
 SUdpPacket.h:16
 SUdpPacket.h:17
 SUdpPacket.h:18
 SUdpPacket.h:19
 SUdpPacket.h:20
 SUdpPacket.h:21
 SUdpPacket.h:22
 SUdpPacket.h:23
 SUdpPacket.h:24
 SUdpPacket.h:25
 SUdpPacket.h:26
 SUdpPacket.h:27
 SUdpPacket.h:28
 SUdpPacket.h:29
 SUdpPacket.h:30
 SUdpPacket.h:31
 SUdpPacket.h:32
 SUdpPacket.h:33
 SUdpPacket.h:34
 SUdpPacket.h:35
 SUdpPacket.h:36
 SUdpPacket.h:37
 SUdpPacket.h:38
 SUdpPacket.h:39
 SUdpPacket.h:40
 SUdpPacket.h:41
 SUdpPacket.h:42
 SUdpPacket.h:43
 SUdpPacket.h:44
 SUdpPacket.h:45