• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS9 gauges

Messages
76
A quick look though the forums here shows that you've all moved onto FS-X. I am still developing for FS-9 - and my question, I believe, will still be pertinent to FS-X - and hopefully beyond. Ok, you can stop laughing, now. really. :o

My situation is thus: I am developing a .gau that will be communicating via TCP/IP to a server located far - far away. I have built a switch, which when turned on is supposed to establish the connection between FS9 and my server.

My question is: Where is the most appropriate place to put the read of the socket for the messages coming from the external server?

Thank you for helping those of us still in the dark ages. ;)
 
If I were you, I'd think about putting the socket reading in a gauge, but connected to local relay application that does the connecting to the remote server and handles the remote comms.

That way you can manage your local comms without fear your long distance comms will block FS from running if there's a connection issue, lag, dropped connection, etc. You can also then ensure the latest relevant data is sent to your gauge at a rate the sim can handle, when it can handle it.

Si
 
Yes, I agree - but where in the gauge itself - I have a switch that activates (ie sets up, connects, and sends an initial message to the server). Is there a timer or should I put the receive in the update "callback" for the switch - or is there some other better place to put the receive?
 
Back
Top