fixed ca_host_name() returns name of the local host
This commit is contained in:
@@ -413,6 +413,12 @@ unsigned nciu::getHostName (
|
||||
guard, pBuf, bufLength );
|
||||
}
|
||||
|
||||
const char * nciu::pHostName (
|
||||
epicsGuard < epicsMutex > & guard ) const throw ()
|
||||
{
|
||||
return this->piiu->pHostName ( guard );
|
||||
}
|
||||
|
||||
bool nciu::ca_v42_ok (
|
||||
epicsGuard < epicsMutex > & guard ) const
|
||||
{
|
||||
|
||||
@@ -262,8 +262,10 @@ private:
|
||||
arrayElementCount nativeElementCount (
|
||||
epicsGuard < epicsMutex > & ) const;
|
||||
static void stringVerify ( const char *pStr, const unsigned count );
|
||||
virtual void ioCompletionNotify (
|
||||
void ioCompletionNotify (
|
||||
epicsGuard < epicsMutex > &, class baseNMIU & );
|
||||
const char * pHostName (
|
||||
epicsGuard < epicsMutex > & guard ) const throw ();
|
||||
nciu ( const nciu & );
|
||||
nciu & operator = ( const nciu & );
|
||||
void * operator new ( size_t );
|
||||
|
||||
@@ -110,7 +110,7 @@ unsigned netiiu::getHostName (
|
||||
}
|
||||
|
||||
const char * netiiu::pHostName (
|
||||
epicsGuard < epicsMutex > & ) const
|
||||
epicsGuard < epicsMutex > & ) const throw ()
|
||||
{
|
||||
return pHostNameNetIIU;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
epicsGuard < epicsMutex > &, char * pBuf,
|
||||
unsigned bufLength ) const throw () = 0;
|
||||
virtual const char * pHostName (
|
||||
epicsGuard < epicsMutex > & ) const = 0;
|
||||
epicsGuard < epicsMutex > & ) const throw () = 0;
|
||||
virtual bool ca_v41_ok (
|
||||
epicsGuard < epicsMutex > & ) const = 0;
|
||||
virtual bool ca_v42_ok (
|
||||
|
||||
@@ -41,7 +41,7 @@ unsigned noopiiu::getHostName (
|
||||
}
|
||||
|
||||
const char * noopiiu::pHostName (
|
||||
epicsGuard < epicsMutex > & cacGuard ) const
|
||||
epicsGuard < epicsMutex > & cacGuard ) const throw ()
|
||||
{
|
||||
return netiiu::pHostName ( cacGuard );
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
epicsGuard < epicsMutex > &, char * pBuf,
|
||||
unsigned bufLength ) const throw ();
|
||||
const char * pHostName (
|
||||
epicsGuard < epicsMutex > & ) const;
|
||||
epicsGuard < epicsMutex > & ) const throw ();
|
||||
bool ca_v41_ok (
|
||||
epicsGuard < epicsMutex > & ) const;
|
||||
bool ca_v42_ok (
|
||||
|
||||
@@ -1708,7 +1708,7 @@ unsigned tcpiiu::getHostName (
|
||||
}
|
||||
|
||||
const char * tcpiiu::pHostName (
|
||||
epicsGuard < epicsMutex > & guard ) const
|
||||
epicsGuard < epicsMutex > & guard ) const throw ()
|
||||
{
|
||||
guard.assertIdenticalMutex ( this->mutex );
|
||||
return this->hostNameCacheInstance.pointer ();
|
||||
|
||||
@@ -1135,7 +1135,7 @@ unsigned udpiiu::getHostName (
|
||||
}
|
||||
|
||||
const char * udpiiu::pHostName (
|
||||
epicsGuard < epicsMutex > & cacGuard ) const
|
||||
epicsGuard < epicsMutex > & cacGuard ) const throw ()
|
||||
{
|
||||
return netiiu::pHostName ( cacGuard );
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ private:
|
||||
epicsGuard < epicsMutex > &, char * pBuf,
|
||||
unsigned bufLength ) const throw ();
|
||||
const char * pHostName (
|
||||
epicsGuard < epicsMutex > & ) const;
|
||||
epicsGuard < epicsMutex > & ) const throw ();
|
||||
bool ca_v41_ok (
|
||||
epicsGuard < epicsMutex > & ) const;
|
||||
bool ca_v42_ok (
|
||||
|
||||
@@ -242,7 +242,7 @@ private:
|
||||
void recvBytes (
|
||||
void * pBuf, unsigned nBytesInBuf, statusWireIO & );
|
||||
const char * pHostName (
|
||||
epicsGuard < epicsMutex > & ) const;
|
||||
epicsGuard < epicsMutex > & ) const throw ();
|
||||
double receiveWatchdogDelay (
|
||||
epicsGuard < epicsMutex > & ) const;
|
||||
void unresponsiveCircuitNotify (
|
||||
|
||||
Reference in New Issue
Block a user