added printf MF
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user