added new screens and getting ready for networking, looking at SDL_net for cross platfrom networking so i dont have to touch windows
This commit is contained in:
26
net.c
Normal file
26
net.c
Normal file
@@ -0,0 +1,26 @@
|
||||
/*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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user