GaiaTCP/Connection.cpp
/// Constructor which will take over an existing IO environment.
Constructor which will take over an existing IO environment.
Constructor which will take over an existing IO environment .
Connection::Connection(std::unique_ptr<boost::asio::io_context> &&context, boost::asio::ip::tcp::socket &&socket) :
            IOContext(std::move(context)), IOSocket(std::move(socket)),
            IOWorker([this](const std::atomic_bool& flag){
            while (flag)
            {
                this->IOContext->run();
            }
        })
    {}
Connection :: Connection ( std :: unique_ptr < boost :: asio :: io_context > && context , boost :: asio :: ip :: tcp :: socket && socket ) : IOContext ( std :: move ( context ) ) , IOSocket ( std :: move ( socket ) ) , IOWorker ( [ this ] ( const std :: atomic_bool & flag ) { while ( flag ) { this -> IOContext -> run ( ) ; } } ) { }
Constructor which will take over an existing IO environment.
Constructor which will take over an existing IO environment .