#include <XrdSecsssCon.hh>
Definition at line 45 of file XrdSecsssCon.hh.
◆ XrdSecsssCon()
XrdSecsssCon::XrdSecsssCon |
( |
| ) |
|
|
inline |
◆ ~XrdSecsssCon()
virtual XrdSecsssCon::~XrdSecsssCon |
( |
| ) |
|
|
inlinevirtual |
◆ Cleanup()
virtual void XrdSecsssCon::Cleanup |
( |
const std::set< std::string > & |
Contacts, |
|
|
const XrdSecEntity & |
Entity |
|
) |
| |
|
pure virtual |
Cleanup connections established by the passed entity.
- Parameters
-
Contacts | Reference to a set of connections created by the entity. Each entry in the form of 'user[:pswd]@host:port'. |
Entity | Reference to the entity object responsible for the contacts. |
- Note
- 1) This object is passed to the XrdSecsssID constructor. 2) It is expected that the callee will disconnect each connection. 3) Upon return the Contacts and Entity objects are deleted.
Referenced by XrdSecsssEnt::Delete().
◆ Contact()
bool XrdSecsssCon::Contact |
( |
const std::string & |
lgnid, |
|
|
const std::string & |
hostID |
|
) |
| |
Add a contact for the indicated loginid entity.
- Parameters
-
lgnid | - The loginid used to to register an Entity via XrdSecsssID. |
hostID | - The hostID (i.e. lgnid[:pswd]@host:port). |
- Returns
- true - Contact added.
-
false - Contact not added as the lgnid is not registered.
Definition at line 44 of file XrdSecsssCon.cc.
46 EntityMap::iterator it;
47 char *colon, lid[256];
57 if (n == std::string::npos || n < 1 || n >=
sizeof(lid))
return false;
58 strncpy(lid, hostID.c_str(), n);
60 if ((colon = index(lid,
':')))
61 {
if (colon == lid)
return false;
73 it->second->AddContact(hostID);
References XrdSecsssMap::conTrack, XrdSysMutex::Lock(), XrdSecsssMap::Registry, XrdSecsssMap::sssMutex, and XrdSysMutex::UnLock().
The documentation for this class was generated from the following files: