Files
shitgame/net.c

27 lines
449 B
C

/*Troy Rosin*/
#include <SDL_net.h>
#include <SDLnetsys.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <mydebug.h>
#include <game.h>
#include <input.h>
#include <deck.h>
#include <main.h>
#include <net.h>
static TCPsocket tcpscok = NULL;
static UDPsocket udpsock = NULL;
static SDLNet_SocketSet socketset = NULL;
static UDPpacket **packets = NULL;
static struct {
int active;
Uint8 name[MAX_NAMESZ];
} people[MAX_PLAYERS];