//===========================================================================// // File: m_socket.cc // // Project: MUNGA Brick: Connection Library // // Contents: Implementation details for Socket and its iterator // //---------------------------------------------------------------------------// // Date Who Modification // // -------- --- ---------------------------------------------------------- // // 10/19/94 ECH Initial coding. // // 10/20/94 JMA Fixed style stuff, merged with SKTITR.CPP // // 10/23/94 ECH Added greater deletion safety // // 10/28/94 JMA Made compatible with SGI CC // // 11/03/94 ECH Made compatible with BC4.0 // // 11/05/94 JMA Made compatible with GNU C++ // // 12/12/94 ECH Changed release mechanism // // 02/16/95 ECH Removed plug commands, added node command // // 06/07/96 ECH Implemented m_socket based remove functionality // //---------------------------------------------------------------------------// // Copyright (C) 1994-1995, Virtual World Entertainment, Inc. // // All Rights reserved worldwide // // This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL // //===========================================================================// #include "StuffHeaders.hpp" //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Socket ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // //############################################################################# // RemovePlug //############################################################################# // void Socket::RemovePlug(Plug *plug) { Check_Object(this); Check_Object(plug); plug->RemoveSocket(this); } // //############################################################################# // IsPlugMember //############################################################################# // bool Socket::IsPlugMember(Plug *plug) { Check_Object(this); Check_Object(plug); return plug->IsSocketMember(this); } // //############################################################################# // IsPlugMember //############################################################################# // unsigned SocketIterator::GetSize() { Check_Object(this); return Cast_Object(Socket*, m_socket)->GetSize(); }