Danbias/Code/Network/NetworkDependencies/Connection.h

29 lines
648 B
C
Raw Normal View History

2013-11-19 12:38:13 +01:00
//////////////////////////////////
// Created by Sam Svensson 2013 //
//////////////////////////////////
#ifndef NETWORK_DEPENDENCIES_CONNECTION_H
#define NETWORK_DEPENDENCIES_CONNECTION_H
#include "IConnection.h"
class Connection : public ::Oyster::Network::IConnection
2013-11-19 12:38:13 +01:00
{
private:
int mySocket;
2013-11-19 12:38:13 +01:00
public:
Connection();
Connection(int socket);
~Connection();
virtual bool Connect( unsigned short port , const char serverName[] );
virtual bool InitiateServer( unsigned short port );
virtual void Disconnect();
virtual bool Send(const char message[]);
virtual int Recieve(char message[]);
2013-11-19 12:38:13 +01:00
virtual int Listen();
2013-11-19 12:38:13 +01:00
};
#endif