2013-11-19 13:42:50 +01:00
|
|
|
#include "Client.h"
|
|
|
|
|
2013-11-27 11:01:22 +01:00
|
|
|
using namespace Oyster::Network;
|
2013-11-21 13:40:52 +01:00
|
|
|
using namespace Oyster::Network::Server;
|
|
|
|
|
2013-11-19 13:42:50 +01:00
|
|
|
Client::Client(unsigned int socket)
|
|
|
|
{
|
|
|
|
connection = new Connection(socket);
|
|
|
|
}
|
|
|
|
|
|
|
|
Client::~Client()
|
|
|
|
{
|
|
|
|
delete connection;
|
|
|
|
}
|
|
|
|
|
2013-11-27 11:01:22 +01:00
|
|
|
void Client::Send(OysterByte& bytes)
|
2013-11-19 13:42:50 +01:00
|
|
|
{
|
2013-11-27 11:01:22 +01:00
|
|
|
connection->Send(bytes);
|
2013-11-19 14:21:25 +01:00
|
|
|
}
|
|
|
|
|
2013-11-27 11:01:22 +01:00
|
|
|
void Client::Recv(OysterByte& bytes)
|
2013-11-19 14:21:25 +01:00
|
|
|
{
|
2013-11-27 11:01:22 +01:00
|
|
|
connection->Recieve(bytes);
|
2013-11-19 13:42:50 +01:00
|
|
|
}
|