Can't connect to jsbsim server #693
Replies: 8 comments 15 replies
-
As a quick test what happens if you don't include |
Beta Was this translation helpful? Give feedback.
-
Ah, I've just looked at your screenshot again. You've placed the
|
Beta Was this translation helpful? Give feedback.
-
It's listed 1 line below in your screenshot, i.e.
|
Beta Was this translation helpful? Give feedback.
-
Also, could you check that JSBSim reports the following output in the terminal where you ran the command
|
Beta Was this translation helpful? Give feedback.
-
Hmm, so I can reproduce the issue with the same symptoms on Windows 11. Telnet connects but there is no output shown. Used (base) C:\Users\Sean>netstat -a
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:135 ThinkCentre:0 LISTENING
TCP 0.0.0.0:445 ThinkCentre:0 LISTENING
TCP 0.0.0.0:1137 ThinkCentre:0 LISTENING
TCP 0.0.0.0:2179 ThinkCentre:0 LISTENING
TCP 0.0.0.0:2869 ThinkCentre:0 LISTENING
TCP 0.0.0.0:3389 ThinkCentre:0 LISTENING
TCP 0.0.0.0:5040 ThinkCentre:0 LISTENING
TCP 0.0.0.0:49664 ThinkCentre:0 LISTENING
TCP 0.0.0.0:49665 ThinkCentre:0 LISTENING
TCP 0.0.0.0:49666 ThinkCentre:0 LISTENING
TCP 0.0.0.0:49667 ThinkCentre:0 LISTENING
TCP 0.0.0.0:49669 ThinkCentre:0 LISTENING
TCP 0.0.0.0:49671 ThinkCentre:0 LISTENING
TCP 0.0.0.0:49683 ThinkCentre:0 LISTENING
TCP 127.0.0.1:1137 ThinkCentre:58408 ESTABLISHED I'll run JSBSim in the debugger to try and see what's happening. Is it sending the text |
Beta Was this translation helpful? Give feedback.
-
Hmm, so the first thing I noticed is that in order to get to From #if defined(_MSC_VER) || defined(__MINGW32__)
SOCKET sckt;
SOCKET sckt_in;
#else
int sckt;
int sckt_in;
#endif From /*
* The new type to be used in all
* instances which refer to sockets.
*/
typedef UINT_PTR SOCKET; And as mentioned here - https://docs.microsoft.com/en-us/windows/win32/winsock/socket-data-type-2
Which makes me wonder how this code ever worked on Windows? Taking a quick glance at the git history for The most recent change was on 1/18/2020 which changed them back to |
Beta Was this translation helpful? Give feedback.
-
As a quick test I changed the type from 1>FGfdmSocket.cpp
1>C:\source\jsbsim\src\input_output\FGfdmSocket.cpp(124,16): warning C4244: '=': conversion from 'SOCKET' to 'int', possible loss of data
1>C:\source\jsbsim\src\input_output\FGfdmSocket.cpp(168,18): warning C4244: '=': conversion from 'SOCKET' to 'int', possible loss of data
1>C:\source\jsbsim\src\input_output\FGfdmSocket.cpp(178,18): warning C4244: '=': conversion from 'SOCKET' to 'int', possible loss of data
1>C:\source\jsbsim\src\input_output\FGfdmSocket.cpp(204,27): warning C4244: '=': conversion from 'SOCKET' to 'int', possible loss of data
1>C:\source\jsbsim\src\input_output\FGfdmSocket.cpp(246,23): warning C4244: '=': conversion from 'SOCKET' to 'int', possible loss of data
1>FGInput.cpp And sure enough now I can telnet to JSBSim successfully. |
Beta Was this translation helpful? Give feedback.
-
FYI, I have created issue #698 upon the problems reported in this discussion. |
Beta Was this translation helpful? Give feedback.
-
I set the input parameters like this in c1723.xm
l
i run the command .\JSBSim --script=scripts/c1723.xml --realtime --suspend and then from another terminal i run the command "telnet localhost 1137" and doesnt get the message "connected to jsbsim server". I just get a blank terminal and cant type anything
Beta Was this translation helpful? Give feedback.
All reactions