Hi Sanny,

Take a look at this code:

http://code.google.com/p/binarymillenium/source/browse/trunk/flightgear/?r=125#flightgear%2Ffgauto

The net_fdm.hxx and net_ctrls.hxx files are from Flightgear and define 
two data structures that can be sent and received by fgfs. In your 
program you can receive the FGNetCtrls structure, change the parameters 
you want to control, and send it back.

The following fgfs parameters will create the control sockets:
--native-ctrls=socket,in,10,127.0.0.1,5600,udp
--native-ctrls=socket,out,10,127.0.0.1,5700,udp

You will likely also need FDM data:
--native-fdm=socket,out,10,127.0.0.1,5500,udp

Hope this helps.

Cheers,
Vik


On 06/24/2012 09:28 PM, Sanny wrote:
> Yes, thanks. but that shows how the socket server receives data from
> client (flightgear) what I want is to send data from server to client
> (flightgear).
>
> 2012/6/24 Jonathan Tanant <jonat...@free.fr <mailto:jonat...@free.fr>>
>
>     Hi Sanny,
>
>     Take a look at this :
>     http://wiki.flightgear.org/Howto:Create_a_generic_protocol
>
>     Best,
>     Jonathan.
>
>
>     Le 24 juin 2012 à 19:04, Sanny a écrit :
>
>      >
>      > Hello!
>      >
>      > My name is Sanny, i'm ecuadorian, i speak spanish and i'm trying
>     to improve my english apologize me for this :)
>      >
>      > I'm trying to make a flight simulator, but there are certain
>     things that i don't know. I want to have on my computer a
>     client-server communication via socket, I want to send data and
>     modify the properties of the simulator from my socket server, I
>     would like to know what the operation and what should I do.
>      >
>      > Can you help me? :)
>      >
>      > Thanks!
>      >
>      > Sanny :)
>      >
>     
> ------------------------------------------------------------------------------
>      > Live Security Virtual Conference
>      > Exclusive live event will cover all the ways today's security and
>      > threat landscape has changed and how IT managers can respond.
>     Discussions
>      > will include endpoint security, mobile security and the latest in
>     malware
>      > threats.
>     
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
>      > Flightgear-devel mailing list
>      > Flightgear-devel@lists.sourceforge.net
>     <mailto:Flightgear-devel@lists.sourceforge.net>
>      > https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
>
>     
> ------------------------------------------------------------------------------
>     Live Security Virtual Conference
>     Exclusive live event will cover all the ways today's security and
>     threat landscape has changed and how IT managers can respond.
>     Discussions
>     will include endpoint security, mobile security and the latest in
>     malware
>     threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>     _______________________________________________
>     Flightgear-devel mailing list
>     Flightgear-devel@lists.sourceforge.net
>     <mailto:Flightgear-devel@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
>
>
>
> --
> Sanny :)
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to