2016-08-02 05:14:09 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-08-11 11:47:30 +08:00
|
|
|
#include "communication/bolt/v1/states.hpp"
|
2016-08-02 05:14:09 +08:00
|
|
|
#include "io/network/socket.hpp"
|
2016-08-10 16:39:02 +08:00
|
|
|
#include "dbms/dbms.hpp"
|
2016-08-02 05:14:09 +08:00
|
|
|
|
|
|
|
namespace bolt
|
|
|
|
{
|
|
|
|
|
|
|
|
class Session;
|
|
|
|
|
|
|
|
class Bolt
|
|
|
|
{
|
|
|
|
friend class Session;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Bolt();
|
|
|
|
|
|
|
|
Session* create_session(io::Socket&& socket);
|
|
|
|
void close(Session* session);
|
|
|
|
|
|
|
|
States states;
|
2016-08-10 16:39:02 +08:00
|
|
|
Dbms dbms;
|
2016-08-02 05:14:09 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|