Skip to content

Commit

Permalink
Return a string for endpoint name to avoid scope confusion.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Mar 1, 2017
1 parent ee94694 commit 0033bd7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/XrdSsi/XrdSsiRequest.hh
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,17 @@ virtual void Alert(XrdSsiRespInfoMsg &aMsg) {aMsg.RecycleMsg(false);}
inline uint32_t GetDetachTTL() {return detTTL;}

//-----------------------------------------------------------------------------
//! Obtain the enpoint host name.
//! Obtain the endpoint host name.
//!
//! @return =0 Host name not available. Typically, the host name will be
//! available on the first callback to this object.
//! @return !0 Pointer to the host name. The name is valid until Finished().
//! @return A string containing the endpoint host name. If a null string is
//! returned, the endpoint has not yet been determined. Generially, the
//! endpoint is available on the first callback to this object.
//-----------------------------------------------------------------------------

inline
const char *GetEndPoint() {XrdSsiMutexMon(rrMutex);
return epNode;
std::string GetEndPoint() {XrdSsiMutexMon(rrMutex);
std::string epName(epNode ? epNode : "");
return epName;
}

//-----------------------------------------------------------------------------
Expand Down

0 comments on commit 0033bd7

Please sign in to comment.