Beispiel #1
0
void Server::deliver(http::Request& req) {
    /*
    google::protobuf::io::OstreamOutputStream out(&std::cerr);
    google::protobuf::TextFormat::Print(req_, &out);
    std::cout << "done\n";
    */

    wire::Message msg;
    msg.set_destination("/harq-http");
    msg.set_payload(req.SerializeAsString());

    queue_->write(msg);
}