2005-07-24 16:12:37 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 22:21:05 +02:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* OpenTTD 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, version 2.
|
|
|
|
* OpenTTD 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 OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file network_udp.h Sending and receiving UDP messages. */
|
|
|
|
|
2005-09-18 22:56:44 +02:00
|
|
|
#ifndef NETWORK_UDP_H
|
|
|
|
#define NETWORK_UDP_H
|
2004-12-04 18:54:56 +01:00
|
|
|
|
2004-12-23 01:24:44 +01:00
|
|
|
#ifdef ENABLE_NETWORK
|
|
|
|
|
2007-03-07 12:47:46 +01:00
|
|
|
void NetworkUDPInitialize();
|
|
|
|
void NetworkUDPSearchGame();
|
|
|
|
void NetworkUDPQueryMasterServer();
|
2009-01-20 02:32:06 +01:00
|
|
|
void NetworkUDPQueryServer(NetworkAddress address, bool manually = false);
|
2007-03-07 12:47:46 +01:00
|
|
|
void NetworkUDPAdvertise();
|
2009-04-10 22:18:48 +02:00
|
|
|
void NetworkUDPRemoveAdvertise(bool blocking);
|
2009-04-08 21:36:51 +02:00
|
|
|
void NetworkUDPClose();
|
2004-12-04 18:54:56 +01:00
|
|
|
|
2006-10-12 16:59:27 +02:00
|
|
|
#endif /* ENABLE_NETWORK */
|
2004-12-23 01:24:44 +01:00
|
|
|
|
2005-09-18 22:56:44 +02:00
|
|
|
#endif /* NETWORK_UDP_H */
|