Files
@ r5312:ffd375effb01
Branch filter:
Location: cpp/openttd-patchpack/source/network_udp.h - annotation
r5312:ffd375effb01
506 B
text/x-c
(svn r7468) -Codechange: [win32] Add some comments to MB/WIDE_TO_WIDE/MB_[BUFFER] macros and
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
r2186:5ee653b1b5e1 r2186:5ee653b1b5e1 r2436:963efe8b84cc r2436:963efe8b84cc r543:efdb197f91ad r774:3e6bfb2226bd r774:3e6bfb2226bd r543:efdb197f91ad r764:b278ee9c19c0 r764:b278ee9c19c0 r543:efdb197f91ad r764:b278ee9c19c0 r1329:88de95f6e7d3 r716:ae3edbaa50e7 r765:0c323ba44a44 r543:efdb197f91ad r4830:b1b68e7108e7 r774:3e6bfb2226bd r2436:963efe8b84cc | /* $Id$ */
#ifndef NETWORK_UDP_H
#define NETWORK_UDP_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 char* host, unsigned short port);
void NetworkUDPAdvertise(void);
void NetworkUDPRemoveAdvertise(void);
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_UDP_H */
|