network_udp.h
author truelight
Thu, 23 Dec 2004 17:37:26 +0000
changeset 785 bba7b3b35dec
parent 774 bb9ec520a1b1
child 1329 6988419aa6f0
permissions -rw-r--r--
(svn r1252) -Add: [Network] With 'set restart_game_date' you can set the date for in
which year the server must restart hisself. (0 = disabled, default value)
#ifndef NETWORK_LAN_H
#define NETWORK_LAN_H

#ifdef ENABLE_NETWORK

void NetworkUDPInitialize(void);
bool NetworkUDPListen(SOCKET *udp, uint32 host, uint16 port, bool broadcast);
void NetworkUDPReceive(SOCKET udp);
void NetworkUDPSearchGame(void);
void NetworkUDPQueryMasterServer(void);
NetworkGameList *NetworkUDPQueryServer(const byte* host, unsigned short port);
void NetworkUDPAdvertise(void);
void NetworkUDPRemoveAdvertise(void);

#endif

#endif /* NETWORK_LAN_H */