Files
epics-base/src/ca/cacChannelIO.cpp
2001-02-09 17:38:00 +00:00

73 lines
1.2 KiB
C++

/* $Id$
*
* L O S A L A M O S
* Los Alamos National Laboratory
* Los Alamos, New Mexico 87545
*
* Copyright, 1986, The Regents of the University of California.
*
* Author: Jeff Hill
*/
#include <float.h>
#include "iocinf.h"
cacChannelIO::~cacChannelIO ()
{
}
channel_state cacChannelIO::state () const
{
return cs_conn;
}
caar cacChannelIO::accessRights () const
{
// static here avoids undefined memory read warning from
// error checking codes
static caar ar = { true, true };
return ar;
}
void cacChannelIO::notifyStateChangeFirstConnectInCountOfOutstandingIO ()
{
}
unsigned cacChannelIO::searchAttempts () const
{
return 0u;
}
double cacChannelIO::beaconPeriod () const
{
return - DBL_MAX;
}
bool cacChannelIO::ca_v42_ok () const
{
return true;
}
bool cacChannelIO::connected () const
{
return true;
}
void cacChannelIO::hostName ( char *pBuf, unsigned bufLength ) const
{
if ( bufLength ) {
localHostNameAtLoadTime.copy ( pBuf, bufLength );
}
}
// deprecated - please do not use
const char * cacChannelIO::pHostName () const
{
return localHostNameAtLoadTime.pointer ();
}