paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Paparazzi android app


From: Savas Sen
Subject: Re: [Paparazzi-devel] Paparazzi android app
Date: Tue, 15 Apr 2014 17:37:26 +0200

Hi Yoshita,
App server code uses Glib and gio libraries to serve multiple clients and handling tcp and udp connections. You can see that in main function,  tcp listener is set to welcome & save new clients.
( gboolean network_read() and gboolean new_connection() )
g_main_loop_new() creates a new GMainLoop which g_main_loop_run(...) runs.
ivy headers are used to read, write data to ivybus and setup some listeners for specific ivy messages. These messages are send to clients which were already saved by new_connection() function. network_read() function handles client requests like moving way-points, or changing blocks.

I don't have so much experience on gio/glib libraries so any improvements on code will definitely welcomed :)

Savas



On Tue, Apr 15, 2014 at 4:32 PM, yoshita <address@hidden> wrote:
Hi,

I am trying to understand the working of the app_server.c file which is
present in the folder:
path_to_paparazzi_folder/sw/ground_segment/tmtc/app_server

In that file there is a function call to the functions: g_main_loop_new(...)
and g_main_loop_run(...)

Also there are the following header files that were included: Ivy/ivy.h,
gio/gio.h, Ivy/ivyglibloop.h

Could you also state the use of these files?

Thanks in advance:)



--
View this message in context: http://lists.paparazziuav.org/Paparazzi-android-app-tp15106.html
Sent from the paparazzi-devel mailing list archive at Nabble.com.

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]