//===========================================================================// // File: host.tst // // Project: MUNGA Brick: Connection Library // // Contents: Interface specification for base Host class // //---------------------------------------------------------------------------// // Date Who Modification // // -------- --- ---------------------------------------------------------- // // 12/07/94 ECH Initial coding. // //---------------------------------------------------------------------------// // Copyright (C) 1994, Virtual World Entertainment, Inc. // // All Rights reserved worldwide // // This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL // //===========================================================================// void HostManager::TestClass() { DEBUG_STREAM << "Starting Host test...\n"; // //-------------------------------------------------------------------- //-------------------------------------------------------------------- // Host *local_host; local_host = new Host( FirstLegalHostID, GameMachineHostType, (NetworkAddress)1 ); Register_Object(local_host); Check(application); Check(application->GetHostManager()); application->GetHostManager()->AdoptLocalHost(local_host); // //-------------------------------------------------------------------- //-------------------------------------------------------------------- // HostID localHostID; Check(application); localHostID = application->GetHostManager()->GetLocalHostID(); Verify(localHostID != NullHostID); // //-------------------------------------------------------------------- //-------------------------------------------------------------------- // EntityID newEntityID; Check(application); newEntityID = application->GetHostManager()->MakeUniqueEntityID(); Verify(newEntityID != EntityID::Null); }