Blenderplayer + X-Plane 10

How do I use python to connect blenderplayer with x-plane?
Or is it possible to programming C++ between blenderplayer and x-plane ?