Complete disaster-recovery snapshot: engine/game source, game data assets, VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive. Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false, no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
64 lines
2.6 KiB
C++
64 lines
2.6 KiB
C++
//===========================================================================//
|
|
// 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();
|
|
}
|