All pastes #973377 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-04-06 02:03 UTC
rendered paste body
----- main.cpp

#include <iostream>
#include <string>
#include <sstream>

#include "GameServer.h"
#include "SocketServer.h"
using namespace std;

template <class T>
string to_string(const T& t) {
  std::stringstream ss;
  ss << t;
  return ss.str();
}

...

---- SocketServer.h

#ifndef SOCKETSERVER_H
#define SOCKETSERVER_H

#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

using namespace std;

template <class T>
string to_string(const T&);
void log_msg(string);

...