2013-11-19 13:42:50 +01:00
|
|
|
#include "Client.h"
|
|
|
|
|
2013-11-21 13:40:52 +01:00
|
|
|
using namespace Oyster::Network::Client;
|
|
|
|
|
2013-11-19 13:42:50 +01:00
|
|
|
Client::Client()
|
|
|
|
{
|
|
|
|
connection = new Connection();
|
|
|
|
}
|
|
|
|
|
|
|
|
Client::~Client()
|
|
|
|
{
|
|
|
|
delete connection;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Client::Connect(unsigned int port, char filename[])
|
|
|
|
{
|
|
|
|
connection->Connect(port, filename);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Client::Send(char msg[])
|
|
|
|
{
|
|
|
|
connection->Send(msg);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Client::Recv(char msg[])
|
|
|
|
{
|
|
|
|
connection->Recieve(msg);
|
|
|
|
}
|