FACT++  1.0
void tcp_server::handle_accept ( tcp_connection::shared_ptr  new_connection,
const boost::system::error_code &  error 
)
inlineprivate

Definition at line 578 of file fad.cc.

Referenced by start_accept().

579  {
580  // The connection has been accepted and is now ready to use
581 
582  // not installing a new handler will stop run()
583  cout << new_connection.get() << " Handle accept[" << fBoardId << "]["<<new_connection->fBoardId<<"]..." << flush;
584  if (!error)
585  {
586  new_connection->start();
587 
588  // The is now an open connection/server (tcp_connection)
589  // we immediatly schedule another connection
590  // This allowed two client-connection at the same time
591  start_accept();
592  }
593  cout << "handle-done." << endl;
594  }
void start_accept()
Definition: fad.cc:553
int fBoardId
Definition: fad.cc:518

+ Here is the caller graph for this function: