[feat] add avahi publish service

This commit is contained in:
Julian Sparber
2017-06-19 11:13:23 +02:00
parent 88bb7a8ac4
commit caffff26aa
5 changed files with 274 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
#include "teleportpeer.h"
#include "teleportappwin.h"
#include "browser.h"
#include "publish.h"
static TeleportAppWindow *win;
@@ -55,6 +56,7 @@ teleport_app_activate (GApplication *app)
g_print("Data: %s\n", teleport_peer_get_ip(peerList, 0, NULL));
g_print("Data: %d\n", teleport_peer_get_port(peerList, 0, NULL));
*/
run_avahi_publish_service("Angela's (self)");
run_avahi_service(peerList);
}