Jump to content

User:RossyMiles/Flatline: Difference between revisions

no edit summary
No edit summary
Line 36: Line 36:
Sends a packet of data to the specified address using the specified socket. To broadcast a message across a LAN (such as when checking for available games), send it to 255.255.255.255 (IPv4 only).
Sends a packet of data to the specified address using the specified socket. To broadcast a message across a LAN (such as when checking for available games), send it to 255.255.255.255 (IPv4 only).


bool '''NetUDPSocket_Recieve('''int '''socket''', char* '''data''', uint16_t* '''datalen''', sockaddr_in*/sockaddr_in6* '''address)'''<br>
bool '''NetUDPSocket_Recieve('''int '''socket''', sockaddr_storage* '''address''', char* '''data''', uint16_t* '''datalen)'''<br>
Recieves a single packet from the specified socket. Places the received data in '''data''', the length of the data returned in '''datalen''', and the address the packet was received from in '''address'''. If there are no packets in the buffer, the function returns immediately.
Recieves a single packet from the specified socket. Places the received data in '''data''', the length of the data returned in '''datalen''', and the address the packet was received from in '''address'''. If there are no packets in the buffer, the function returns false.


=== NetUDPServer_* ===
=== NetUDPServer_* ===
98

edits