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)
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
TInetAddress
This class represents an Internet Protocol (IP) address.
Private default ctor. Used in case of unknown host. Not a valid address.
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 copy ctor.
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.
Returns the IP address string "%d.%d.%d.%d". Copy string immediately, it will be reused.
Print internet address as string.
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()