2 // Property server class.
4 // Written by Curtis Olson, started September 2000.
5 // Modified by Bernie Bright, May 2002.
7 // Copyright (C) 2000 Curtis L. Olson - http://www.flightgear.org/~curt
9 // This program is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU General Public License as
11 // published by the Free Software Foundation; either version 2 of the
12 // License, or (at your option) any later version.
14 // This program is distributed in the hope that it will be useful, but
15 // WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 // General Public License for more details.
19 // You should have received a copy of the GNU General Public License
20 // along with this program; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29 #include <simgear/compiler.h>
33 #include <simgear/io/sg_netChannel.hxx>
35 #include "protocol.hxx"
38 * Property server class.
39 * This class provides a telnet-like server for remote access to
40 * FlightGear properties.
42 class FGProps : public FGProtocol,
43 public simgear::NetChannel,
44 public SGPropertyChangeListener // for subscriptions
49 * Server port to listen on.
52 simgear::NetChannelPoller poller;
55 * Create a new TCP server.
57 * @param tokens Tokenized configuration parameters
59 FGProps( const std::vector<std::string>& tokens );
67 * Start the telnet server.
72 * Process network activity.
82 * Accept a new client connection.
88 #endif // _FG_PROPS_HXX