Exemplo n.º 1
0
session::session(p2p& network, bool notify_on_connect)
  : stopped_(true),
    notify_on_connect_(notify_on_connect),
    network_(network),
    settings_(network.network_settings()),
    pool_(network.thread_pool()),
    dispatch_(pool_, NAME)
{
}
Exemplo n.º 2
0
session::session(p2p& network, bool outgoing, bool persistent)
  : stopped_(true),
    incoming_(!outgoing),
    notify_(persistent),
    network_(network),
    settings_(network.network_settings()),
    pool_(network.thread_pool()),
    dispatch_(pool_, NAME)
{
}