This commit is contained in:
Jeff Hill
2000-06-29 00:21:43 +00:00
parent 8a2347f4c5
commit 71f7435760
11 changed files with 96 additions and 221 deletions

View File

@@ -27,4 +27,39 @@ netiiu::~netiiu ()
{
}
void netiiu::show ( unsigned /* level */ ) const
{
this->pcas->lock ();
tsDLIterConstBD <nciu> pChan ( this->chidList.first () );
while ( pChan.valid () ) {
char hostName [256];
printf( "%s native type=%d ",
pChan->pName (), pChan->nativeType () );
pChan->hostName ( hostName, sizeof (hostName) );
printf( "N elements=%lu server=%s state=",
pChan->nativeElementCount (), hostName );
switch ( pChan->state () ) {
case cs_never_conn:
printf ("never connected to an IOC");
break;
case cs_prev_conn:
printf ("disconnected from IOC");
break;
case cs_conn:
printf ("connected to an IOC");
break;
case cs_closed:
printf ("invalid channel");
break;
default:
break;
}
printf("\n");
}
this->pcas->unlock ();
}