From: <sv...@ww...> - 2004-05-10 04:35:51
|
Author: wolverine Date: 2004-05-02 13:14:20 -0700 (Sun, 02 May 2004) New Revision: 941 Added: trunk/CSP/CSPSim/Source/Networking/NetworkAddress.cpp Log: Added new Networking files Added: trunk/CSP/CSPSim/Source/Networking/NetworkAddress.cpp =================================================================== --- trunk/CSP/CSPSim/Source/Networking/NetworkAddress.cpp 2004-05-02 20:13:24 UTC (rev 940) +++ trunk/CSP/CSPSim/Source/Networking/NetworkAddress.cpp 2004-05-02 20:14:20 UTC (rev 941) @@ -0,0 +1,64 @@ +// Combat Simulator Project - FlightSim Demo +// Copyright (C) 2002 The Combat Simulator Project +// http://csp.sourceforge.net +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +/** + * @file NetworkAddress.cpp: + * @author Scott Flicker (Wolverine) + * + * This class encapsulates a node in the simulation network. + */ +#include "Networking.h" + +NetworkAddress::NetworkAddress() +{ + m_name = "hostname"; + m_IPAddress = "0.0.0.0"; +} + +NetworkAddress::NetworkAddress(const simdata::String name) +{ + +} + +NetworkAddress::NetworkAddress(NetworkAddress & addr) +{ + +} + +simdata::String NetworkAddress::getNetworkName() +{ + //FIXME this needs to be not hardcoded. + return m_name; +} + +simdata::String NetworkAddress::getNetworkIP() +{ + return m_IPAddress; +} + +void NetworkAddress::setByNetworkName(const simdata::String & name) +{ + +} + +void NetworkAddress::setByNetworkIP(const simdata::String & address) +{ + +} + |