first commit, unfinished wip
This commit is contained in:
9
include/netcode.h
Normal file
9
include/netcode.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef NETCODE_H
|
||||
#define NETCODE_H
|
||||
|
||||
// Returns a socket file descriptor.
|
||||
int NET_Connect(const char* host, int port);
|
||||
void NET_Send(int sockfd, const char* toSend);
|
||||
void NET_Close(int sockfd);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user