handmade/include/UDP_Write.h
Bubblegumdrop 46b2ed80ae Initial commit.
Another nuke! This time, trying to do a client <-> server thing.

Also a bit of messing with Lua.
2022-01-02 19:28:16 -05:00

9 lines
532 B
C

#pragma once
#include <SDL_net.h>
int Buffer_Write_UDP (UDPsocket udpsock, const int channel, const size_t mtu, const void* buf, const size_t size);
int File_Write_UDP (UDPsocket udpsock, const int channel, const size_t mtu, const char* path);
int SendFile_UDP (const char* host, const Uint16 port, const int channel, const size_t mtu, const char* path);
int SendBuffer_UDP (const char* host, const Uint16 port, const int channel, const size_t mtu, const void* buf, const size_t size);