FACT++  1.0
tcp_server::tcp_server ( ba::io_service &  ioservice,
int  port 
)
inline

Definition at line 505 of file ftm.cc.

505  :
506  tcp::acceptor(ioservice, tcp::endpoint(tcp::v4(), port))
507 
508  {
509  // We could start listening for more than one connection
510  // here, but since there is only one handler executed each time
511  // it would not make sense. Before one handle_accept is not
512  // finished no new handle_accept will be called.
513  // Workround: Start a new thread in handle_accept
514  start_accept();
515  }
void start_accept()
Definition: fad.cc:553