tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mdns_service.h (812B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #include <new>
      6 
      7 struct MDNSService;
      8 
      9 extern "C" {
     10 
     11 void mdns_service_register_hostname(MDNSService* serv, const char* hostname,
     12                                    const char* addr);
     13 
     14 MDNSService* mdns_service_start(const char* ifaddr);
     15 
     16 void mdns_service_stop(MDNSService* serv);
     17 
     18 void mdns_service_query_hostname(
     19    MDNSService* serv, void* data,
     20    void (*resolved)(void* data, const char* hostname, const char* address),
     21    void (*timedout)(void* data, const char* hostname), const char* hostname);
     22 
     23 void mdns_service_unregister_hostname(MDNSService* serv, const char* hostname);
     24 
     25 }  // extern "C"