mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
use boost stuff
This commit is contained in:
@@ -33,15 +33,16 @@
|
||||
class TestState;
|
||||
class Protocol;
|
||||
class Connections;
|
||||
class Connection;
|
||||
|
||||
class Connection : public std::enable_shared_from_this<Connection>
|
||||
class Connection : public boost::enable_shared_from_this<Connection>
|
||||
{
|
||||
public:
|
||||
typedef std::function<void()> ConnectionCallback;
|
||||
typedef std::function<void(NetworkMessagePtr)> RecvCallback;
|
||||
typedef std::function<void(const boost::system::error_code&, const std::string&)> ErrorCallback;
|
||||
typedef boost::function<void()> ConnectionCallback;
|
||||
typedef boost::function<void(NetworkMessagePtr)> RecvCallback;
|
||||
typedef boost::function<void(const boost::system::error_code&, const std::string&)> ErrorCallback;
|
||||
|
||||
typedef std::shared_ptr<Connection> ConnectionPtr;
|
||||
typedef boost::shared_ptr<Connection> ConnectionPtr;
|
||||
|
||||
private:
|
||||
Connection(boost::asio::io_service& ioService);
|
||||
@@ -94,6 +95,6 @@ private:
|
||||
friend class Connections;
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<Connection> ConnectionPtr;
|
||||
typedef boost::shared_ptr<Connection> ConnectionPtr;
|
||||
|
||||
#endif //CONNECTION_h
|
||||
|
@@ -92,6 +92,6 @@ protected:
|
||||
uint8 m_msgBuf[NETWORKMESSAGE_MAXSIZE];
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<NetworkMessage> NetworkMessagePtr;
|
||||
typedef boost::shared_ptr<NetworkMessage> NetworkMessagePtr;
|
||||
|
||||
#endif //NETWORKMESSAGE_H
|
Reference in New Issue
Block a user