XRootD
XrdTpc::PMarkManager::SocketInfo Class Reference

#include <XrdTpcPMarkManager.hh>

+ Collaboration diagram for XrdTpc::PMarkManager::SocketInfo:

Public Member Functions

 SocketInfo (int fd, const struct sockaddr *sockP)
 

Public Attributes

XrdSecEntity client
 
XrdNetAddr netAddr
 

Detailed Description

This class allows to create and keep a XrdSecEntity object from the socket file descriptor and address Everything is done on the constructor

These infos will be used later on when we create new PMark handles

Definition at line 58 of file XrdTpcPMarkManager.hh.

Constructor & Destructor Documentation

◆ SocketInfo()

XrdTpc::PMarkManager::SocketInfo::SocketInfo ( int  fd,
const struct sockaddr *  sockP 
)

Definition at line 29 of file XrdTpcPMarkManager.cc.

29  {
30  netAddr.Set(sockP,fd);
31  client.addrInfo = static_cast<XrdNetAddrInfo*>(&netAddr);
32 }
const char * Set(const char *hSpec, int pNum=PortInSpec)
Definition: XrdNetAddr.cc:216
XrdNetAddrInfo * addrInfo
Entity's connection details.
Definition: XrdSecEntity.hh:80

References XrdSecEntity::addrInfo, client, netAddr, and XrdNetAddr::Set().

+ Here is the call graph for this function:

Member Data Documentation

◆ client

XrdSecEntity XrdTpc::PMarkManager::SocketInfo::client

Definition at line 62 of file XrdTpcPMarkManager.hh.

Referenced by SocketInfo(), and XrdTpc::PMarkManager::beginPMarks().

◆ netAddr

XrdNetAddr XrdTpc::PMarkManager::SocketInfo::netAddr

Definition at line 61 of file XrdTpcPMarkManager.hh.

Referenced by SocketInfo().


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