XRootD
XrdCl::ProtocolInfo Class Reference

Protocol response. More...

#include <XrdClXRootDResponses.hh>

+ Collaboration diagram for XrdCl::ProtocolInfo:

Public Types

enum  HostTypes {
  IsManager = kXR_isManager ,
  IsServer = kXR_isServer ,
  AttrCache = kXR_attrCache ,
  AttrMeta = kXR_attrMeta ,
  AttrProxy = kXR_attrProxy ,
  AttrSuper = kXR_attrSuper
}
 Types of XRootD servers. More...
 

Public Member Functions

 ProtocolInfo (uint32_t version, uint32_t hostInfo)
 Constructor. More...
 
uint32_t GetHostInfo () const
 Get host info. More...
 
uint32_t GetVersion () const
 Get version info. More...
 
bool TestHostInfo (uint32_t flags)
 Test host info flags. More...
 

Detailed Description

Protocol response.

Definition at line 341 of file XrdClXRootDResponses.hh.

Member Enumeration Documentation

◆ HostTypes

Types of XRootD servers.

Enumerator
IsManager 

Manager.

IsServer 

Data server.

AttrCache 

Cache attribute.

AttrMeta 

Meta attribute.

AttrProxy 

Proxy attribute.

AttrSuper 

Supervisor attribute.

Definition at line 347 of file XrdClXRootDResponses.hh.

348  {
355  };
#define kXR_isManager
Definition: XProtocol.hh:1156
#define kXR_attrMeta
Definition: XProtocol.hh:1159
#define kXR_attrSuper
Definition: XProtocol.hh:1161
#define kXR_isServer
Definition: XProtocol.hh:1157
#define kXR_attrCache
Definition: XProtocol.hh:1158
#define kXR_attrProxy
Definition: XProtocol.hh:1160
@ AttrProxy
Proxy attribute.
@ AttrSuper
Supervisor attribute.
@ AttrCache
Cache attribute.

Constructor & Destructor Documentation

◆ ProtocolInfo()

XrdCl::ProtocolInfo::ProtocolInfo ( uint32_t  version,
uint32_t  hostInfo 
)
inline

Constructor.

Definition at line 360 of file XrdClXRootDResponses.hh.

360  :
361  pVersion( version ), pHostInfo( hostInfo ) {}

Member Function Documentation

◆ GetHostInfo()

uint32_t XrdCl::ProtocolInfo::GetHostInfo ( ) const
inline

Get host info.

Definition at line 374 of file XrdClXRootDResponses.hh.

375  {
376  return pHostInfo;
377  }

◆ GetVersion()

uint32_t XrdCl::ProtocolInfo::GetVersion ( ) const
inline

Get version info.

Definition at line 366 of file XrdClXRootDResponses.hh.

367  {
368  return pVersion;
369  }

◆ TestHostInfo()

bool XrdCl::ProtocolInfo::TestHostInfo ( uint32_t  flags)
inline

Test host info flags.

Definition at line 382 of file XrdClXRootDResponses.hh.

383  {
384  return pHostInfo & flags;
385  }

The documentation for this class was generated from the following file: