26 fHostname =
"UnknownHost";
40 if (!strcmp(host,
"????") || !strcmp(host,
"UnNamedHost"))
101 return Form(
"%d.%d.%d.%d", (addr >> 24) & 0xFF,
127 AddressList_t::const_iterator ai;
136 AliasList_t::const_iterator ali;
138 if (!i)
printf(
"%s:",
fAliases.size() == 1 ?
"Alias" :
"Aliases");
139 printf(
" %s", ali->Data());
164 void TInetAddress::Streamer(
TBuffer &R__b)
175 TObject::Streamer(R__b);
187 R__stl1.reserve(R__n);
188 for (R__i = 0; R__i < R__n; R__i++) {
191 R__stl1.push_back(R__t1);
196 R__stl2.reserve(R__n);
197 for (R__i = 0; R__i < R__n; R__i++) {
199 R__t2.Streamer(R__b);
200 R__stl2.push_back(R__t2);
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
const char * GetHostName() const
ClassImp(TInetAddress) TInetAddress
Default ctor. Used in case of unknown host. Not a valid address.
This class represents an Internet Protocol (IP) address.
Buffer base class used for serializing objects.
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
std::vector< UInt_t > AddressList_t
std::vector< TString > AliasList_t
TObject & operator=(const TObject &rhs)
TObject assignment operator.
UChar_t * GetAddressBytes() const
Returns the raw IP address in host byte order.
char * Form(const char *fmt,...)
void AddAlias(const char *alias)
Add alias to list of aliases.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
void AddAddress(UInt_t addr)
Add alternative address to list of addresses.
TInetAddress & operator=(const TInetAddress &rhs)
TInetAddress assignment operator.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
void Print(Option_t *option="") const
Print internet address as string.
Mother of all ROOT objects.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
const char * GetHostAddress() const
Returns the IP address string "%d.%d.%d.%d".