]> git.mxchange.org Git - flightgear.git/blob - src/Network/jsclient.hxx
Add Manuel Bessler and Stephen Lowry's remote joystick code and add David Magginson...
[flightgear.git] / src / Network / jsclient.hxx
1 // jsclient.cxx -- simple UDP networked jsstick client
2 //
3 // Copyright (C) 2003 by Manuel Bessler and Stephen Lowry
4 //
5 // based on jsclient.cxx by Curtis Olson
6 // Copyright (C) 2000  Curtis L. Olson - curt@flightgear.org
7 //
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.
12 //
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.
17 //
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.
21 //
22 // $Id$
23
24
25 #ifndef _FG_JSCLIENT_HXX
26 #define _FG_JSCLIENT_HXX
27
28
29 #include <simgear/compiler.h>
30
31 #include STL_STRING
32
33 #include <FDM/flight.hxx>
34
35 #include "protocol.hxx"
36
37 SG_USING_STD(string);
38
39
40 class FGJsClient : public FGProtocol {
41
42     char buf[256];
43     int length;
44
45 public:
46
47     FGJsClient();
48     ~FGJsClient();
49
50     // open hailing frequencies
51     bool open();
52
53     // process work for this port
54     bool process();
55
56     // close the channel
57     bool close();
58 };
59
60
61 #endif // _FG_JSCLIENT_HXX