library: libNetx #include "TXLogConnection.h"

# TXLogConnection

class description - source file - inheritance tree (.pdf)

## class TXLogConnection : public TXAbsUnsolicitedMsgHandler, public TXUnsolicitedMsgSender

| Inheritance Chart:

`TXAbsUnsolicitedMsgHandler`
`TXUnsolicitedMsgSender`

<-

`TXLogConnection`

        public:

                           TXLogConnection()
                           TXLogConnection(const TXLogConnection&)
                   virtual ~TXLogConnection()
            static TClass* Class()
                    UInt_t GetBytesRecv() const
                    UInt_t GetBytesSent() const
                    UInt_t GetPhyBytesRecv()
                    UInt_t GetPhyBytesSent()
          TXPhyConnection* GetPhyConnection()
           virtual TClass* IsA() const
                     Int_t LastBytesRecv()
                     Int_t LastBytesSent()
          TXLogConnection& operator=(const TXLogConnection&)
            virtual Bool_t ProcessUnsolicitedMsg(TXUnsolicitedMsgSender* sender, TXMessage* unsolmsg)
                     Int_t ReadRaw(void* buffer, Int_t BufferLength, ESendRecvOptions opt = kDefault)
                      void SetPhyConnection(TXPhyConnection* PhyConn)
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
                     Int_t WriteRaw(const void* buffer, Int_t BufferLength, ESendRecvOptions opt = kDefault)

### Data Members

        private:

          TXPhyConnection* fPhyConnection
                     Int_t fLogLastBytesSent
                     Int_t fLogBytesSent
                     Int_t fLogLastBytesRecv
                     Int_t fLogBytesRecv

## Class Description

     TXLogConnection

     Authors: Alvise Dorigo, Fabrizio Furano
              INFN Padova, 2003

     Class implementing logical connections

TXLogConnection() : fLogLastBytesSent(0), fLogBytesSent(0), fLogLastBytesRecv(0), fLogBytesRecv(0)

     Constructor

~TXLogConnection()

     Destructor

UInt_t GetPhyBytesSent()

     Return number of bytes sent

UInt_t GetPhyBytesRecv()

     Return number of bytes received

Int_t WriteRaw(const void *buffer, Int_t bufferlength, ESendRecvOptions opt)

     Send over the open physical connection 'bufferlength' bytes located
     at buffer.
     Return number of bytes sent.

Int_t ReadRaw(void *buffer, Int_t bufferlength, ESendRecvOptions opt)

     Receive from the open physical connection 'bufferlength' bytes and
     save in buffer.
     Return number of bytes received.

Bool_t ProcessUnsolicitedMsg(TXUnsolicitedMsgSender *sender, TXMessage *unsolmsg)

     We are here if an unsolicited response comes from the connmgr
     The response comes in the form of an TXMessage *, that must NOT be
     destroyed after processing. It is destroyed by the first sender.
     Remember that we are in a separate thread, since unsolicited responses
     are asynchronous by nature.

### Inline Functions

                      UInt_t GetBytesSent() const
                      UInt_t GetBytesRecv() const
            TXPhyConnection* GetPhyConnection()
                       Int_t LastBytesRecv()
                       Int_t LastBytesSent()
                        void SetPhyConnection(TXPhyConnection* PhyConn)
                     TClass* Class()
                     TClass* IsA() const
                        void ShowMembers(TMemberInspector& insp, char* parent)
                        void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)
             TXLogConnection TXLogConnection(const TXLogConnection&)
            TXLogConnection& operator=(const TXLogConnection&)

Author: Alvise Dorigo, Fabrizio Furano
Last update: root/netx:$Name: $:$Id: TXLogConnection.cxx,v 1.4 2004/12/16 19:23:18 rdm Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *