Hi all, I'm trying to make a simple application that just retrieves the FG status via the property tree.
What I've done: I've started FG with the option --props=5400; I've startet a successful telnet session in the same host, and everything works fine. But I can't manage to make an app that does this connection. I create a socket. Then, the 'connect' call works fine. Then I use a 'write' call to send the string "ls" to FG. I've tried "help" and "ls\n" as well. They both work fine. But then I call 'read' (to see the help/ls results), and nothing is actually read: the program just blocks there without continuing execution. So I assume everything is working fine, except that I'm not using the protocol properly to retrieve information. I suppose FG is not giving information because I don't know how to ask him. What am I doing wrong? There is a second problem, related to my lack of knowledge of Linux server configuration: When I try to telnet FG from a foreign computer of the LAN, it just keeps saying "Trying 192.168.1.3...", so I think I need to configure the computer where FG is running so that it accepts the telnet request. How can I do it? I'm running Fedora 6. Thanks. Pep. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel