2013-11-19 13:42:50 +01:00
|
|
|
#ifndef NETWORK_SERVER_CLIENT_H
|
|
|
|
#define NETWORK_SERVER_CLIENT_H
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
2013-11-21 13:42:38 +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
|
|
|
|
{
|
2013-11-19 13:42:50 +01:00
|
|
|
|
2013-11-21 13:40:52 +01:00
|
|
|
public:
|
|
|
|
Client(unsigned int socket);
|
|
|
|
~Client();
|
2013-11-19 13:42:50 +01:00
|
|
|
|
2013-11-21 13:40:52 +01:00
|
|
|
void Send(char buffer[]);
|
|
|
|
void Recv(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
|