TInetAddress
class description - source file - inheritance tree
private:
TInetAddress TInetAddress()
TInetAddress TInetAddress(char* host, UInt_t addr, Int_t family, Int_t port = -1)
public:
TInetAddress TInetAddress(TInetAddress& adr)
virtual void ~TInetAddress()
TClass* Class()
UInt_t GetAddress()
UChar_t* GetAddressBytes()
Int_t GetFamily()
const char* GetHostAddress()
const char* GetHostName()
Int_t GetPort()
virtual TClass* IsA()
Bool_t IsValid()
TInetAddress& operator=(TInetAddress& rhs)
virtual void Print(Option_t* option)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
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
TInetAddress
This class represents an Internet Protocol (IP) address.
TInetAddress()
Private 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 *)
Print internet address as string.
Inline Functions
TInetAddress& operator=(TInetAddress& rhs)
UInt_t GetAddress()
const char* GetHostName()
Int_t GetFamily()
Int_t GetPort()
Bool_t IsValid()
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void ~TInetAddress()
Author: Fons Rademakers 16/12/96
Last update: 1.03/08 17/11/97 16.19.14 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.