2 // Property server class.
4 // Written by Bernie Bright, started May 2002.
6 // Copyright (C) 2002 Bernie Bright - bbright@bigpond.net.au
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef TELNET_HXX_INCLUDED
25 #define TELNET_HXX_INCLUDED 1
27 #include <simgear/compiler.h>
34 #include <plib/netChannel.h>
36 #include "protocol.hxx"
39 * Property server class.
40 * This class provides a telnet-like server for remote access to
41 * FlightGear properties.
43 class FGTelnet : public FGProtocol,
49 * Server port to listen on.
55 * Create a new TCP server.
57 * @param tokens Tokenized configuration parameters
59 FGTelnet( const vector<string>& tokens );
67 * Start the telnet server.
72 * Process network activity.
82 * Accept a new client connection.
88 #endif //TELNET_HXX_INCLUDED