|
From: Curtis O. <cur...@gm...> - 2007-08-19 18:51:34
|
It may be that the tcp connection needs the other end to be running so it can make an outgoing connection to something that exists. I don't think the tcp side of this has been tested extensively, but I use udp sockets all the time. Curt. On 8/19/07, ian...@f2... <ian...@f2...> wrote: > > Hi KH et al., > > I've managed to get to a situation where the following CMD line works in > giving > me a file (flight.out), but there is no data appearing on the socket at > port > 6000. There is an entry in netstat at 6000, and my process does connect, > but no > data can be read off the socket. I have the same result with TCP & UDP. > > Can anybody replicate this on WinXP with success. Can anybody suggest > things I > can try. I have tried compiling, but couldn't get the exe to actually run > (another story if I'm forced down that route :-). > > Many Thanks for any help > Ian Hunter > > call "C:\Program Files\FlightGear\bin\Win32\fgfs.exe" > --fg-root="C:\Program Files\FlightGear\data" > --fg-scenery="C:\Program Files\FlightGear\data\Scenery;C:\Program > Files\FlightGear\scenery" > --airport-id=KLVK > --aircraft=bf109 > --control=joystick > --disable-random-objects > --disable-ai-models > --timeofday=noon > --generic=file,out,20,flight.out,attitudeAndSurfaces > --generic=socket,out,1,localhost,6000,tcp,attitudeAndSurfaces > > [This is formatted for clarity] > > ========================================================================= > > Quoting "K. Hoercher" <wb...@gm...>: > > > OK, talking to myself a bit, after more reading *g* > > > > On 8/14/07, K. Hoercher <wb...@gm...> wrote: > > > On 8/13/07, Ian Hunter <im...@f2...> wrote: > > > > > What does work here is something like: > > > [ --generic=socket,out,5,localhost,port,udp,xmlFilename ] > > > > README.IO talks about parameters "can be" for generic protocol, but > > obviously "can" refers to the 3 alternatives <serial|socket|file>, > > whereas the specific parameters are not meant to be optional. One must > > provide at least the correct number of those if only by leaving some > > "empty" between the separating commata. > > > > Looking through fg_io.cxx I am not sure why > > 188: FGGeneric *generic = new FGGeneric( tokens[n] ); doesn't fall > > flat on Ian's input, as it does not contain a needed token[7]. At > > least not something which could be opened in > > generic.cxx:57: readProperties(path.str(), &root); > > > > The checking for the needed number of tokens further down (l. 251ff) > > does happen too late insofar and is too lenient (for > > "--generic=socket" at least) allowing for tokens.size()<6 which Ian > > did provide. So should be <7? > > > > > > 1) If I set 'out', I get this failure:- > > > > > > > > Error: connect() failed in make_client_socket() > > > > SG_IO_OUT socket creation failed > > > > Error opening channel communication layer. > > > > I/O Channel config failed. > > > > So finally the error does manifest in l. 294ff. > > > > > > 2) If I set 'bi', then all appears OK, but no data appears on the > socket. > > > > Shouldn't work either, but somehow should produce errors along the > > same lines as shown above. > > > > A quick diff with the webinterface didn't show tremendous changes > > between 0.9.10 and HEAD which would account for different behaviour in > > that regard I believe. > > > > HTH > > K. Hoercher > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Flightgear-users mailing list > > Fli...@li... > > https://lists.sourceforge.net/lists/listinfo/flightgear-users > > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Flightgear-users mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flightgear-users > -- Curtis Olson - University of Minnesota - FlightGear Project http://baron.flightgear.org/~curt/ http://www.humanfirst.umn.edu/ http://www.flightgear.org Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d |