sm64coopdx/src/pc/network/socket/socket.h
MysterD 6c8050a564 Abstracted all socket code behind a NetworkSystem
In preparation for other forms of communication, I have abstracted all
of the socket code (which needs direct connections) behind a struct
whose calls can be swapped out for other systems if desired.
2020-09-12 17:56:42 -07:00

17 lines
271 B
C

#ifndef SOCKET_H
#define SOCKET_H
#include "../network.h"
#ifdef WINSOCK
#include "socket_windows.h"
#else
#include "socket_linux.h"
#endif
extern struct NetworkSystem gNetworkSystemSocket;
SOCKET socket_initialize(void);
void socket_shutdown(SOCKET socket);
#endif