changed loacal host name cache object to an epics singleton

This commit is contained in:
Jeff Hill
2002-07-08 16:35:24 +00:00
parent f6f73b8e7d
commit 3aa95fdd91
4 changed files with 16 additions and 5 deletions

View File

@@ -62,14 +62,14 @@ bool cacChannel::connected () const
void cacChannel::hostName ( char *pBuf, unsigned bufLength ) const
{
if ( bufLength ) {
localHostNameAtLoadTime.copy ( pBuf, bufLength );
pLocalHostNameAtLoadTime->copy ( pBuf, bufLength );
}
}
// deprecated - please do not use
const char * cacChannel::pHostName () const
{
return localHostNameAtLoadTime.pointer ();
return pLocalHostNameAtLoadTime->pointer ();
}