4 #ifndef SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVSDB_CLIENT_SSL_H_
5 #define SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVSDB_CLIENT_SSL_H_
6 #include <boost/asio.hpp>
7 #include <boost/asio/buffer.hpp>
15 #include <agent_types.h>
30 void SendMsg(u_int8_t *buf, std::size_t len);
32 bool RecvMsg(
const u_int8_t *buf, std::size_t len);
89 typedef std::map<SessionKey, OvsdbClientSslSession *>
SessionMap;
94 const std::string &ssl_privkey,
const std::string &ssl_cacert,
102 const std::string
server();
boost::asio::ip::address IpAddress
boost::asio::ip::address_v4 Ip4Address
static int ovsdb_io_task_id_
virtual int reader_task_id() const
WorkQueue< OvsdbSessionEvent > * session_event_queue_
DISALLOW_COPY_AND_ASSIGN(OvsdbClientSslSession)
void EnqueueEvent(TcpSession::Event event)
OvsdbClientSslSession(Agent *agent, OvsPeerManager *manager, OvsdbClientSsl *server, SslSocket *sock, bool async_ready=true)
void SendMsg(u_int8_t *buf, std::size_t len)
KSyncObjectManager * ksync_obj_manager()
bool ThrottleInFlightTxnMessages()
bool RecvMsg(const u_int8_t *buf, std::size_t len)
ConnectionStateTable * connection_table()
virtual void OnRead(Buffer buffer)
const boost::system::error_code & ovsdb_close_reason() const
virtual Ip4Address remote_ip() const
virtual uint16_t remote_port() const
bool ProcessSessionEvent(OvsdbSessionEvent event)
OvsdbClientTcpSessionReader * reader_
void set_status(std::string status)
void OnSessionEvent(TcpSession *session, TcpSession::Event event)
bool AcceptSession(TcpSession *session)
virtual ~OvsdbClientSsl()
void AddSessionInfo(SandeshOvsdbClient &client)
OvsdbClientSsl(Agent *agent, IpAddress tor_ip, int tor_port, IpAddress tsn_ip, int keepalive_interval, int ha_stale_route_interval, const std::string &ssl_cert, const std::string &ssl_privkey, const std::string &ssl_cacert, OvsPeerManager *manager)
uint32_t ssl_server_port_
const std::string protocol()
std::map< SessionKey, OvsdbClientSslSession * > SessionMap
std::pair< Ip4Address, uint16_t > SessionKey
OvsdbClientSession * NextSession(OvsdbClientSession *session)
DISALLOW_COPY_AND_ASSIGN(OvsdbClientSsl)
virtual SslSession * AllocSession(SslSocket *socket)
const std::string server()
OvsdbClientSession * FindSession(Ip4Address ip, uint16_t port)
int keepalive_interval() const
int ha_stale_route_interval() const
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket
boost::asio::const_buffer Buffer