First network test

Warning: old, unfinished code
This commit is contained in:
André Schweiger 2017-04-26 21:39:46 +02:00
parent c107f82abb
commit 3b2a0f4de8
7 changed files with 149 additions and 45 deletions

View file

@ -56,6 +56,8 @@ bool networkConnect(int pos);
void networkDisconnect();
bool networkConnected();
bool networkIsServer();
void networkSend(networkPacket *packet, size_t size); //TODO: Should this be a pointer? Calling function needs to cleanup itself
void networkSendTo(networkPacket *packet, size_t size, u16 reciever); //TODO: Should this be a pointer? Calling function needs to cleanup itself
void networkRecieve(); //TODO: Should recieve actually handle all the packets or just return them?