src/network/core/udp.h
changeset 5772 fbb42af982b4
parent 5770 15abf566c92e
child 5778 c1454e0c03bf
equal deleted inserted replaced
5771:7288d4e4bfba 5772:fbb42af982b4
     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