model_server/gala_communications/src/Application.cxx
/* this is the old function.  It isn't used*/
this is the old function.  It isn't used
this is the old function . It isn ' t used
int Application::getNumberOfClients()
{
	int nRet =-1;
	int nTotal=0;
	if(service_ )
	{
		vserviceSessionIterator iter;
		iter.Start(service_ );
		while( iter.Next() )
		{
			vsession *ssn = iter.GetValue();
			if( ssn && ssn->IsActive() )
				nTotal++;
		}
		iter.Finish();
		nRet=nTotal;
	} 
	return nRet;
}
int Application :: getNumberOfClients ( ) { int nRet = -1 ; int nTotal = 0 ; if ( service_ ) { vserviceSessionIterator iter ; iter . Start ( service_ ) ; while ( iter . Next ( ) ) { vsession * ssn = iter . GetValue ( ) ; if ( ssn && ssn -> IsActive ( ) ) nTotal ++ ; } iter . Finish ( ) ; nRet = nTotal ; } return nRet ; }
this is the old function.
this is the old function .