42 if (!strcmp(host,
"????") || !strcmp(host,
"UnNamedHost"))
103 return Form(
"%d.%d.%d.%d", (addr >> 24) & 0xFF,
129 AddressList_t::const_iterator ai;
131 if (!i) printf(
"%s:",
fAddresses.size() == 1 ?
"Address" :
"Addresses");
138 AliasList_t::const_iterator ali;
140 if (!i) printf(
"%s:",
fAliases.size() == 1 ?
"Alias" :
"Aliases");
141 printf(
" %s", ali->Data());
189 R__stl1.reserve(R__n);
190 for (R__i = 0; R__i < R__n; R__i++) {
193 R__stl1.push_back(R__t1);
198 R__stl2.reserve(R__n);
199 for (R__i = 0; R__i < R__n; R__i++) {
202 R__stl2.push_back(R__t2);
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
Buffer base class used for serializing objects.
virtual Version_t ReadVersion(UInt_t *start=nullptr, UInt_t *bcnt=nullptr, const TClass *cl=nullptr)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
This class represents an Internet Protocol (IP) address.
TInetAddress & operator=(const TInetAddress &rhs)
TInetAddress assignment operator.
TClass * IsA() const override
void Streamer(TBuffer &) override
Stream an object of class TInetAddress.
std::vector< UInt_t > AddressList_t
const char * GetHostName() const
void AddAlias(const char *alias)
Add alias to list of aliases.
std::vector< TString > AliasList_t
UChar_t * GetAddressBytes() const
Returns the raw IP address in host byte order.
void AddAddress(UInt_t addr)
Add alternative address to list of addresses.
void Print(Option_t *option="") const override
Print internet address as string.
const char * GetHostAddress() const
Returns the IP address string "%d.%d.%d.%d".
TInetAddress()
Default ctor. Used in case of unknown host. Not a valid address.
Mother of all ROOT objects.
TObject & operator=(const TObject &rhs)
TObject assignment operator.
virtual void Streamer(TBuffer &)
Stream an object of class TObject.
virtual void Streamer(TBuffer &)
Stream a string object.