correct include

master
Denes Matetelki 12 years ago
parent 08fd005217
commit 19d2b9a957

@ -1,8 +1,8 @@
#ifndef CONNECTION_HPP #ifndef CONNECTION_HPP
#define CONNECTION_HPP #define CONNECTION_HPP
#include <string>
#include "string"
class Connection class Connection
{ {

@ -0,0 +1,42 @@
#ifndef CONNECTION_HPP
#define CONNECTION_HPP
#include <string>
class Connection
{
public:
virtual ~Connection();
virtual Connection* clone(const int socket) = 0;
virtual bool bind() = 0;
virtual bool send( const void* message, const size_t length ) = 0;
virtual bool receive() = 0;
std::string getHost() const;
std::string getPort() const;
void setHost(const std::string host);
void setPort(const std::string port);
virtual int getSocket() const = 0;
protected:
Connection(const std::string host, const std::string port);
std::string m_host;
std::string m_port;
private:
Connection(const Connection &);
Connection& operator= (const Connection &);
};
#endif // CONNECTION_HPP

@ -4,7 +4,7 @@
#include "Connection.hpp" #include "Connection.hpp"
#include "string" #include <string>
class StreamConnection : public Connection class StreamConnection : public Connection
{ {

Loading…
Cancel
Save