511
517
// Subscribe to stop socket. Once this socket becomes readable, that's the command to finish.
514
524
// Set up message pump. Router-dealer for twoway adapter, pull-push for oneway adapter.
515
525
auto socket_type = mode_ == RequestMode::Twoway ? zmqpp::socket_type::router : zmqpp::socket_type::pull;