diff options
author | rubidium <rubidium@openttd.org> | 2007-01-04 21:48:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-01-04 21:48:52 +0000 |
commit | 73079f83bc99d17571e547cfcc7c2c9c6ff31217 (patch) | |
tree | 14ee5feed2ea48a5d6f3bc1965768ced6fa0dd4d /src/network/core/udp.c | |
parent | b2f85eb044df4ea47ce53115f11a113d2914df24 (diff) | |
download | openttd-73079f83bc99d17571e547cfcc7c2c9c6ff31217.tar.xz |
(svn r7836) -Codechange: some constness for network/core.
Diffstat (limited to 'src/network/core/udp.c')
-rw-r--r-- | src/network/core/udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/core/udp.c b/src/network/core/udp.c index 93c24a156..72d600157 100644 --- a/src/network/core/udp.c +++ b/src/network/core/udp.c @@ -20,7 +20,7 @@ * @param broadcast whether to allow broadcast sending/receiving * @return true if the listening succeeded */ -bool NetworkUDPListen(SOCKET *udp, uint32 host, uint16 port, bool broadcast) +bool NetworkUDPListen(SOCKET *udp, const uint32 host, const uint16 port, const bool broadcast) { struct sockaddr_in sin; @@ -85,7 +85,7 @@ void NetworkUDPClose(SOCKET *udp) * @param p the packet to send * @param recv the receiver (target) of the packet */ -void NetworkSendUDP_Packet(SOCKET udp, Packet *p, struct sockaddr_in *recv) +void NetworkSendUDP_Packet(const SOCKET udp, Packet *p, const struct sockaddr_in *recv) { int res; @@ -102,7 +102,7 @@ void NetworkSendUDP_Packet(SOCKET udp, Packet *p, struct sockaddr_in *recv) * Receive a packet at UDP level * @param udp the socket to receive the packet on */ -void NetworkUDPReceive(SOCKET udp) +void NetworkUDPReceive(const SOCKET udp) { struct sockaddr_in client_addr; socklen_t client_len; |