From 056195be410229dde61286c9f316eaec48a7a550 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 26 Jul 2013 17:06:03 -0400 Subject: Fixed the multiple friends request recieved at the same time problem. --- core/LAN_discovery.h | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'core/LAN_discovery.h') diff --git a/core/LAN_discovery.h b/core/LAN_discovery.h index 7448abac..655830f9 100644 --- a/core/LAN_discovery.h +++ b/core/LAN_discovery.h @@ -1,7 +1,24 @@ -/* LAN_discovery.h +/* LAN_discovery.h * - * LAN discovery implementation. + * LAN discovery implementation. * + * Copyright (C) 2013 Tox project All Rights Reserved. + * + * This file is part of Tox. + * + * Tox is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tox is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tox. If not, see . + * */ @@ -11,6 +28,9 @@ #include "DHT.h" +#ifdef __cplusplus +extern "C" { +#endif /*Send a LAN discovery pcaket to the broadcast address with port port*/ int send_LANdiscovery(uint16_t port); @@ -23,6 +43,8 @@ int LANdiscovery_handlepacket(uint8_t * packet, uint32_t length, IP_Port source) - +#ifdef __cplusplus +} +#endif #endif -- cgit v1.2.3