1 // \file UGear_telnet.hxx
2 // telnet server class.
4 // Adapted from FlightGear props.hxx/cxx code
5 // Written by Curtis Olson, started September 2000.
6 // Modified by Bernie Bright, May 2002.
8 // Copyright (C) 2000 Curtis L. Olson - http://www.flightgear.org/~curt
10 // This program is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU General Public License as
12 // published by the Free Software Foundation; either version 2 of the
13 // License, or (at your option) any later version.
15 // This program is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // General Public License for more details.
20 // You should have received a copy of the GNU General Public License
21 // along with this program; if not, write to the Free Software
22 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27 #ifndef _UG_TELNET_HXX
28 #define _UG_TELNET_HXX
36 #include <simgear/io/sg_netChannel.hxx>
40 * Telent server class.
41 * This class provides a telnet-like server for remote access to
42 * FlightGear properties.
44 class UGTelnet: simgear::NetChannel
50 * Server port to listen on.
58 * Create a new TCP server.
60 * @param tokens Tokenized configuration parameters
62 UGTelnet( const int port_num );
70 * Start the telnet server.
75 * Process network activity.
85 * Accept a new client connection.
91 #endif // _UG_TELNET_HXX