TMessage


class description - source file - inheritance tree

class TMessage : public TBuffer

    private:
TMessage TMessage(void* buf, Int_t bufsize) void SetLength() const public:
TMessage TMessage(UInt_t what = kMESS_ANY) TMessage TMessage(TMessage&) virtual void ~TMessage() TClass* Class() TClass* GetClass() const virtual TClass* IsA() const void Reset(UInt_t what) virtual void Reset() void SetWhat(UInt_t what) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) UInt_t What() const

Data Members

private:
UInt_t fWhat message type TClass* fClass if message is kMESS_OBJECT, pointer to object's class

Class Description

                                                                      
 TMessage                                                             
                                                                      
 Message buffer class used for serializing objects and sending them   
 over a network. This class inherits from TBuffer the basic I/O       
 serializer.                                                          
                                                                      


TMessage(UInt_t what) : TBuffer(kWrite)
 Create a TMessage object for storing objects. The "what" integer
 describes the type of message. Predifined ROOT system message types
 can be found in MessageTypes.h. Make sure your own message types are
 unique from the ROOT defined message types (i.e. 0 - 10000 are
 reserved by ROOT). In case you OR "what" with kMESS_ACK, the message
 will wait for an acknowledgement from the remote side. This makes
 the sending process synchronous.

TMessage(void *buf, Int_t bufsize) : TBuffer(kRead, bufsize, buf)
 Create a TMessage object for reading objects. The objects will be
 read from buf. Use the What() method to get the message type.

~TMessage()
 TMessage dtor. In case we were reading reset fBuffer.

void Reset()
 Reset the message buffer so we can use (i.e. fill) it again.

void SetLength() const
 Set the message length at the beginning of the message buffer.
 This method is only called by TSocket::Send().

void SetWhat(UInt_t what)
 Using this method one can change the message type a posteriory.



Inline Functions


            TClass* GetClass() const
               void Reset(UInt_t what)
             UInt_t What() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
           TMessage TMessage(TMessage&)


Author: Fons Rademakers 19/12/96
Last update: 2.22/05 10/06/99 18.45.43 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.