TInetAddress


class description - source file - inheritance tree

class TInetAddress : public TObject

    private:
TInetAddress TInetAddress(const char* host, UInt_t addr, Int_t family, Int_t port = -1) public:
TInetAddress TInetAddress() TInetAddress TInetAddress(const TInetAddress& adr) virtual void ~TInetAddress() static TClass* Class() UInt_t GetAddress() const UChar_t* GetAddressBytes() const Int_t GetFamily() const const char* GetHostAddress() const const char* GetHostName() const Int_t GetPort() const virtual TClass* IsA() const Bool_t IsValid() const TInetAddress& operator=(const TInetAddress& rhs) virtual void Print(Option_t* option) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

private:
TString fHostname full qualified hostname UInt_t fAddress IP address in host byte order Int_t fFamily address family Int_t fPort port through which we are connected

Class Description

                                                                      
 TInetAddress                                                         
                                                                      
 This class represents an Internet Protocol (IP) address.             
                                                                      


TInetAddress()
 Default ctor. Used in case of unknown host. Not a valid address.

TInetAddress(const char *host, UInt_t addr, Int_t family, Int_t port)
 Create TInetAddress. Private ctor. TInetAddress objects can only
 be created via the friend classes TSystem, TServerSocket and TSocket.
 Use the IsValid() method to check the validity of a TInetAddress.

TInetAddress(const TInetAddress &adr)
 TInetAddress copy ctor.

UChar_t* GetAddressBytes() const
 Returns the raw IP address in host byte order. The highest
 order byte position is in addr[0]. To be prepared for 64-bit
 IP addresses an array of bytes is returned.

const char* GetHostAddress() const
 Returns the IP address string "%d.%d.%d.%d".
 Copy string immediately, it will be reused.

void Print(Option_t *) const
 Print internet address as string.



Inline Functions


        TInetAddress& operator=(const TInetAddress& rhs)
               UInt_t GetAddress() const
          const char* GetHostName() const
                Int_t GetFamily() const
                Int_t GetPort() const
               Bool_t IsValid() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
                 void ~TInetAddress()


Author: Fons Rademakers 16/12/96
Last update: root/net:$Name: $:$Id: TInetAddress.cxx,v 1.2 2000/12/13 15:13:53 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


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.