2013-11-19 13:42:50 +01:00
|
|
|
#ifndef NETWORK_SERVER_CLIENT_H
|
|
|
|
#define NETWORK_SERVER_CLIENT_H
|
|
|
|
|
2013-11-25 19:00:33 +01:00
|
|
|
/////////////////////////////////////
|
|
|
|
// Created by Pontus Fransson 2013 //
|
|
|
|
/////////////////////////////////////
|
2013-11-19 13:42:50 +01:00
|
|
|
|
|
|
|
#include "../NetworkDependencies/Connection.h"
|
|
|
|
|
2013-11-21 13:40:52 +01:00
|
|
|
namespace Oyster
|
2013-11-19 13:42:50 +01:00
|
|
|
{
|
2013-11-21 13:40:52 +01:00
|
|
|
namespace Network
|
|
|
|
{
|
|
|
|
namespace Server
|
|
|
|
{
|
|
|
|
class Client
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Client(unsigned int socket);
|
|
|
|
~Client();
|
2013-11-19 13:42:50 +01:00
|
|
|
|
2013-11-22 08:56:00 +01:00
|
|
|
void Send(unsigned char buffer[]);
|
|
|
|
void Recv(unsigned char buffer[]);
|
2013-11-19 13:42:50 +01:00
|
|
|
|
2013-11-21 13:40:52 +01:00
|
|
|
private:
|
|
|
|
::Oyster::Network::Connection* connection;
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-11-19 13:42:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|