_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

mdns.cpp File Reference
#include "mdns.h"
#include "game.h"
#include "net_lowlevel.h"
#include "network.h"

Functions

mdns.cpp - LAN server discovery.
static int service_callback (int sock, const struct sockaddr *from, size_t addrlen, mdns_entry_type_t entry, uint16_t query_id, uint16_t rtype, uint16_t rclass, uint32_t ttl, const void *data, size_t size, size_t name_offset, size_t name_length, size_t record_offset, size_t record_length, void *user_data)
 
static int query_callback (int sock, const struct sockaddr *from, size_t addrlen, mdns_entry_type_t entry, uint16_t query_id, uint16_t rtype, uint16_t rclass, uint32_t ttl, const void *data, size_t size, size_t name_offset, size_t name_length, size_t record_offset, size_t record_length, void *user_data)
 

Function Documentation

◆ query_callback()

static int query_callback ( int  sock,
const struct sockaddr *  from,
size_t  addrlen,
mdns_entry_type_t  entry,
uint16_t  query_id,
uint16_t  rtype,
uint16_t  rclass,
uint32_t  ttl,
const void data,
size_t  size,
size_t  name_offset,
size_t  name_length,
size_t  record_offset,
size_t  record_length,
void user_data 
)
static

◆ service_callback()

static int service_callback ( int  sock,
const struct sockaddr *  from,
size_t  addrlen,
mdns_entry_type_t  entry,
uint16_t  query_id,
uint16_t  rtype,
uint16_t  rclass,
uint32_t  ttl,
const void data,
size_t  size,
size_t  name_offset,
size_t  name_length,
size_t  record_offset,
size_t  record_length,
void user_data 
)
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.