Sends data on an unreliable socket
| 911 | |
| 912 | // Sends data on an unreliable socket |
| 913 | int nw_Send(network_address *who_to, void *data, int len, int flags) { |
| 914 | if (len == 0) { |
| 915 | mprintf(0, "Attempting to send 0 byte network packet in nw_Send()\n"); |
| 916 | Int3(); |
| 917 | } |
| 918 | if (NetDebugFile) { |
| 919 | uint8_t *ptr = (uint8_t *)data; |
| 920 | cfprintf(NetDebugFile, "nw_Send packet of type %d at %f seconds.\n", ptr[0], timer_GetTime()); |
| 921 | } |
| 922 | return nw_SendWithID(NWT_UNRELIABLE, (uint8_t *)data, len, who_to); |
| 923 | } |
| 924 | |
| 925 | // MTS: only used in this file? |
| 926 | void nw_HandleUnreliableData(uint8_t *data, int len, network_address *from_addr) { |
no test coverage detected