//===========================================================================// // File: node.hh // // Project: MUNGA Brick: Connection Library // // Contents: Interface specification for base node class // //---------------------------------------------------------------------------// // Date Who Modification // // -------- --- ---------------------------------------------------------- // // 09/29/94 ECH Initial coding. // // 10/20/94 JMA Fixed style stuff. // // 10/23/94 ECH Added greater deletion safety // // 10/28/94 JMA Made compatible with SGI CC // // 11/08/94 ECH Made compatible with BC4.0 // // 11/30/94 JMA Adapted to new style conventions // // 12/06/94 JMA Made virtual data publicly visible // // 12/12/94 ECH Changed release handler // // 02/16/95 ECH Removed plug commands, added node command // // 02/16/95 ECH Removed plug commands, added node command // //---------------------------------------------------------------------------// // Copyright (C) 1994-1995, Virtual World Entertainment, Inc. // // All Rights reserved worldwide // // This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL // //===========================================================================// #if !defined(NODE_HPP) # define NODE_HPP # if !defined(SOCKET_HPP) # include # endif //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Node ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class Node: public Plug { public: // //-------------------------------------------------------------------- // Destructor //-------------------------------------------------------------------- // ~Node(); // //-------------------------------------------------------------------- // ReceiveNodeCommand - Is called from plugs when sending a command // to connected sockets //-------------------------------------------------------------------- // virtual int ReceiveNodeCommand( NodeCommandID, // node_command void * //info ) {return 0;} // //-------------------------------------------------------------------- // ReleaseLinkHandler //-------------------------------------------------------------------- // virtual void ReleaseLinkHandler(Socket*, Plug*); protected: // //-------------------------------------------------------------------- // Constructor //-------------------------------------------------------------------- // Node(ClassID class_id = TrivialNodeClassID); Node(PlugStream *stream); }; #endif