mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-07-14 02:11:12 +00:00
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.
17 lines
271 B
C
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
|