Move client functionality into AvroSession

Most of the code is unchanged. Some of the code that relied on modifiable
char pointers was modified to use std::string.
This commit is contained in:
Markus Mäkelä
2018-05-28 12:49:17 +03:00
parent 0d73530ff3
commit e35d9dfc10
4 changed files with 250 additions and 321 deletions

View File

@ -432,8 +432,7 @@ bool notify_cb(DCB* dcb, void* data)
if (dcb->service == service && dcb->dcb_role == DCB_ROLE_CLIENT_HANDLER)
{
AvroSession* ses = reinterpret_cast<AvroSession*>(dcb->session->router_session);
avro_notify_client(ses);
poll_fake_write_event(dcb);
}
return true;