mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Basic Lan Implmentation
This commit is contained in:
parent
bc23a610d3
commit
f03922f218
26 changed files with 1414 additions and 2 deletions
|
@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "content/mods.h"
|
||||
#include "json-forwards.h"
|
||||
#include <iostream>
|
||||
#include "network/lan.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
|
@ -28,6 +29,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
namespace ServerList
|
||||
{
|
||||
/*
|
||||
Special thanks to proller <proler@gmail.com> for
|
||||
letting us use the methods lan_get() and lan_fresh()
|
||||
as well as the lan_adv class.
|
||||
*/
|
||||
extern lan_adv lan_adv_client;
|
||||
void lan_get();
|
||||
bool lan_fresh();
|
||||
|
||||
#if USE_CURL
|
||||
enum AnnounceAction {AA_START, AA_UPDATE, AA_DELETE};
|
||||
void sendAnnounce(AnnounceAction, u16 port,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue