Simple Connect to QGroundControl from raw data

Is there any example or Concept how to connect simple application C/C++ to Ground Station software like QGroundControl and Send simple data like GPS Position to ground station ?

I want to use My application as vehicle, for example I want my Raspberry PI that connected to GPS via USB send its position to QGroundcontrol via UDP wifi.

Thank you.