5 #ifndef SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVSDB_CLIENT_SESSION_H_
6 #define SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVSDB_CLIENT_SESSION_H_
19 class SandeshOvsdbClientSession;
50 virtual void SendMsg(u_int8_t *buf, std::size_t len) = 0;
79 #define OVSDB_SM_TRACE(obj, ...)\
81 Ovsdb##obj::TraceMsg(OvsdbSMTraceBuf, __FILE__, __LINE__, __VA_ARGS__);\
84 #define OVSDB_SESSION_TRACE(obj, session, ...)\
86 Ovsdb##obj::TraceMsg(OvsdbSMTraceBuf, __FILE__, __LINE__,\
87 "Session " + session->remote_ip().to_string() +\
88 ":" + integerToString(session->remote_port()) +\
89 " - " + __VA_ARGS__);\
boost::asio::ip::address_v4 Ip4Address
virtual int keepalive_interval()=0
virtual const boost::system::error_code & ovsdb_close_reason() const =0
static int ovsdb_io_task_id_
virtual void TriggerClose()=0
virtual Ip4Address remote_ip() const =0
OvsdbClientIdlPtr client_idl_
virtual bool TestConcurrencyAllow()
struct json_parser * parser_
void SendJsonRpc(struct jsonrpc_msg *msg)
tbb::atomic< bool > idl_inited_
virtual uint16_t remote_port() const =0
virtual std::string status()=0
virtual KSyncObjectManager * ksync_obj_manager()=0
std::string connection_time_
virtual bool ThrottleInFlightTxnMessages()
OvsPeerManager * manager_
void AddSessionInfo(SandeshOvsdbClientSession &session)
virtual void OnCleanup()=0
virtual void SendMsg(u_int8_t *buf, std::size_t len)=0
virtual ConnectionStateTable * connection_table()=0
OvsdbClientIdl * client_idl()
virtual Ip4Address tsn_ip()=0
OvsdbClientSession(Agent *agent, OvsPeerManager *manager)
void MessageProcess(const u_int8_t *buf, std::size_t len)
DISALLOW_COPY_AND_ASSIGN(OvsdbClientSession)
virtual ~OvsdbClientSession()
boost::intrusive_ptr< OvsdbClientIdl > OvsdbClientIdlPtr