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();
128 #endif //SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVSDB_CLIENT_SSL_H_
int ha_stale_route_interval() const
boost::asio::const_buffer Buffer
void SendMsg(u_int8_t *buf, std::size_t len)
virtual ~OvsdbClientSsl()
KSyncObjectManager * ksync_obj_manager()
boost::asio::ip::address IpAddress
OvsdbClientSession * FindSession(Ip4Address ip, uint16_t port)
DISALLOW_COPY_AND_ASSIGN(OvsdbClientSsl)
bool ThrottleInFlightTxnMessages()
OvsdbClientSslSession(Agent *agent, OvsPeerManager *manager, OvsdbClientSsl *server, SslSocket *sock, bool async_ready=true)
std::pair< Ip4Address, uint16_t > SessionKey
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket
const std::string server()
DISALLOW_COPY_AND_ASSIGN(OvsdbClientSslSession)
virtual Ip4Address remote_ip() const
OvsdbClientSession * NextSession(OvsdbClientSession *session)
std::map< SessionKey, OvsdbClientSslSession * > SessionMap
const std::string protocol()
virtual void OnRead(Buffer buffer)
void AddSessionInfo(SandeshOvsdbClient &client)
uint32_t ssl_server_port_
void set_status(std::string status)
bool AcceptSession(TcpSession *session)
ConnectionStateTable * connection_table()
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket
int keepalive_interval() const
const boost::system::error_code & ovsdb_close_reason() const
OvsdbClientTcpSessionReader * reader_
boost::asio::ip::address_v4 Ip4Address
bool ProcessSessionEvent(OvsdbSessionEvent event)
WorkQueue< OvsdbSessionEvent > * session_event_queue_
virtual SslSession * AllocSession(SslSocket *socket)
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)
void OnSessionEvent(TcpSession *session, TcpSession::Event event)
virtual uint16_t remote_port() const
virtual int reader_task_id() const
bool RecvMsg(const u_int8_t *buf, std::size_t len)
void EnqueueEvent(TcpSession::Event event)
static int ovsdb_io_task_id_