Created empty TCPNetworkManager; needs work, I don't even like the name

This commit is contained in:
Kayne Ruse
2013-05-02 01:17:56 +10:00
parent 95f2d212ef
commit b935fcf1d1
7 changed files with 147 additions and 16 deletions
+29 -4
View File
@@ -1,8 +1,33 @@
#include "server.hpp"
#include "SDL/SDL.h"
#include "SDL_net/SDL_net.h"
#include <iostream>
#include <stdexcept>
int SDL_main(int, char**) {
return 0;
}
using namespace std;
Server::Server() {
//
}
Server::~Server() {
//
}
void Server::Init() {
if (SDLNet_Init()) {
throw(runtime_error("Failed to init SDL_net"));
}
}
void Server::Proc() {
bool running = true;
while(running) {
//
}
}
void Server::Quit() {
SDLNet_Quit();
}