FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
void tcp_server::handle_accept
(
tcp_connection::shared_ptr
new_connection
,
const boost::system::error_code &
error
)
inline
private
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
}
tcp_server::start_accept
void start_accept()
Definition:
fad.cc:553
tcp_server::fBoardId
int fBoardId
Definition:
fad.cc:518
Here is the caller graph for this function:
tcp_server
Generated on Sun Sep 18 2016 20:51:03 for FACT++ by
1.8.11