diff --git a/src/ca/nciu_IL.h b/src/ca/nciu_IL.h new file mode 100644 index 000000000..dd7ab7005 --- /dev/null +++ b/src/ca/nciu_IL.h @@ -0,0 +1,36 @@ + +/* + * $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 Jeffrey O. Hill + * johill@lanl.gov + * 505 665 1831 + */ + + +// +// nciu inline member functions +// + +inline void * nciu::operator new (size_t size) +{ + return nciu::freeList.allocate (size); +} + +inline void nciu::operator delete (void *pCadaver, size_t size) +{ + nciu::freeList.release (pCadaver,size); +} + +inline bool nciu::fullyConstructed () const +{ + return this->f_fullyConstructed; +} \ No newline at end of file diff --git a/src/ca/netReadNotifyIO_IL.h b/src/ca/netReadNotifyIO_IL.h new file mode 100644 index 000000000..dbba308fb --- /dev/null +++ b/src/ca/netReadNotifyIO_IL.h @@ -0,0 +1,27 @@ + +/* + * $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 Jeffrey O. Hill + * johill@lanl.gov + * 505 665 1831 + */ + +inline void * netReadNotifyIO::operator new (size_t size) +{ + return netReadNotifyIO::freeList.allocate (size); +} + +inline void netReadNotifyIO::operator delete (void *pCadaver, size_t size) +{ + netReadNotifyIO::freeList.release (pCadaver,size); +} + diff --git a/src/ca/netSubscription_IL.h b/src/ca/netSubscription_IL.h new file mode 100644 index 000000000..f28cc89fc --- /dev/null +++ b/src/ca/netSubscription_IL.h @@ -0,0 +1,27 @@ + +/* + * $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 Jeffrey O. Hill + * johill@lanl.gov + * 505 665 1831 + */ + + +inline void * netSubscription::operator new (size_t size) +{ + return netSubscription::freeList.allocate (size); +} + +inline void netSubscription::operator delete (void *pCadaver, size_t size) +{ + netSubscription::freeList.release (pCadaver,size); +} diff --git a/src/ca/netWriteNotifyIO_IL.h b/src/ca/netWriteNotifyIO_IL.h new file mode 100644 index 000000000..cfd320a7a --- /dev/null +++ b/src/ca/netWriteNotifyIO_IL.h @@ -0,0 +1,29 @@ + +/* + * $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 Jeffrey O. Hill + * johill@lanl.gov + * 505 665 1831 + */ + +// +// netWriteNotifyIO inline member functions +// +inline void * netWriteNotifyIO::operator new (size_t size) +{ + return netWriteNotifyIO::freeList.allocate (size); +} + +inline void netWriteNotifyIO::operator delete (void *pCadaver, size_t size) +{ + netWriteNotifyIO::freeList.release (pCadaver,size); +} \ No newline at end of file diff --git a/src/ca/tcpiiu_IL.h b/src/ca/tcpiiu_IL.h new file mode 100644 index 000000000..21dcdb36c --- /dev/null +++ b/src/ca/tcpiiu_IL.h @@ -0,0 +1,73 @@ + + +/* + * $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 Jeffrey O. Hill + * johill@lanl.gov + * 505 665 1831 + */ + +inline osiSockAddr tcpiiu::address () const +{ + return this->dest; +} + +inline void * tcpiiu::operator new (size_t size) +{ + return tcpiiu::freeList.allocate (size); +} + +inline void tcpiiu::operator delete (void *pCadaver, size_t size) +{ + tcpiiu::freeList.release (pCadaver,size); +} + +inline bool tcpiiu::fullyConstructed () const +{ + return this->fc; +} + +inline void tcpiiu::flush () +{ + if ( cacRingBufferWriteFlush ( &this->send ) ) { + this->armSendWatchdog (); + } +} + +inline void tcpiiu::hostName ( char *pBuf, unsigned bufLength ) const +{ + if ( bufLength ) { + strncpy ( pBuf, this->host_name_str, bufLength ); + pBuf[bufLength - 1u] = '\0'; + } +} + +// deprecated - please dont use +inline const char * tcpiiu::pHostName () const +{ + return this->host_name_str; +} + +inline bool tcpiiu::ca_v42_ok () const +{ + return CA_V42 (CA_PROTOCOL_VERSION, this->minor_version_number); +} + +inline bool tcpiiu::ca_v41_ok () const +{ + return CA_V41 (CA_PROTOCOL_VERSION, this->minor_version_number); +} + +inline SOCKET tcpiiu::getSock () const +{ + return this->sock; +}