From fde282b967ecfb708c76f4c7ebf862656c1bd73b Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 4 Jun 2001 23:13:49 +0000 Subject: [PATCH] added printf MF --- src/ca/nciu.cpp | 17 ++++++++++++++++- src/ca/nciu.h | 5 +++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/ca/nciu.cpp b/src/ca/nciu.cpp index fca7b0e0e..a4d2db8f7 100644 --- a/src/ca/nciu.cpp +++ b/src/ca/nciu.cpp @@ -40,9 +40,9 @@ nciu::nciu ( cac &cacIn, netiiu &iiuIn, cacChannelNotify &chanIn, const char *pNameIn ) : cacChannel ( chanIn ), cacCtx ( cacIn ), - count ( 0 ), piiu ( &iiuIn ), sid ( UINT_MAX ), + count ( 0 ), retry ( 0u ), retrySeqNo ( 0u ), nameLength ( strlen ( pNameIn ) + 1 ), @@ -478,6 +478,21 @@ void nciu::show ( unsigned level ) const } } +int nciu::printf ( const char *pFormat, ... ) +{ + va_list theArgs; + int status; + + va_start ( theArgs, pFormat ); + + status = this->cacCtx.vPrintf ( pFormat, theArgs ); + + va_end ( theArgs ); + + return status; +} + + diff --git a/src/ca/nciu.h b/src/ca/nciu.h index bb4315b86..e235544ec 100644 --- a/src/ca/nciu.h +++ b/src/ca/nciu.h @@ -61,6 +61,7 @@ public: ca_uint32_t getCID () const; netiiu * getPIIU (); cac & getClient (); + int printf ( const char *pFormat, ... ); void searchReplySetUp ( netiiu &iiu, unsigned sidIn, ca_uint16_t typeIn, arrayElementCount countIn ); void show ( unsigned level ) const; @@ -75,12 +76,12 @@ public: protected: ~nciu (); // force pool allocation private: - cac &cacCtx; caAccessRights accessRightState; - unsigned count; + cac &cacCtx; char *pNameStr; netiiu *piiu; ca_uint32_t sid; // server id + unsigned count; unsigned retry; // search retry number ca_uint16_t retrySeqNo; // search retry seq number ca_uint16_t nameLength; // channel name length