equal
deleted
inserted
replaced
9 * @file udp.h Basic functions to receive and send UDP packets. |
9 * @file udp.h Basic functions to receive and send UDP packets. |
10 */ |
10 */ |
11 |
11 |
12 ///** Sending/receiving of UDP packets **//// |
12 ///** Sending/receiving of UDP packets **//// |
13 |
13 |
|
14 bool NetworkUDPListen(SOCKET *udp, uint32 host, uint16 port, bool broadcast); |
|
15 void NetworkUDPClose(SOCKET *udp); |
|
16 |
14 void NetworkSendUDP_Packet(SOCKET udp, Packet *p, struct sockaddr_in *recv); |
17 void NetworkSendUDP_Packet(SOCKET udp, Packet *p, struct sockaddr_in *recv); |
15 bool NetworkUDPListen(SOCKET *udp, uint32 host, uint16 port, bool broadcast); |
|
16 void NetworkUDPReceive(SOCKET udp); |
18 void NetworkUDPReceive(SOCKET udp); |
17 |
19 |
18 /** |
20 /** |
19 * Function that is called for every received UDP packet. |
21 * Function that is called for every received UDP packet. |
20 * @param udp the socket the packet is received on |
22 * @param udp the socket the packet is received on |