Skip to content

Commit

Permalink
Pass through the field of an incoming connection header, issue #543.
Browse files Browse the repository at this point in the history
  • Loading branch information
gerkey committed Apr 2, 2015
1 parent 91f4a45 commit c672d41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/roscpp/src/libros/transport_subscriber_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ bool TransportSubscriberLink::handleHeader(const Header& header)
m["message_definition"] = pt->getMessageDefinition();
m["callerid"] = this_node::getName();
m["latching"] = pt->isLatching() ? "1" : "0";
m["topic"] = topic_;
connection_->writeHeader(m, boost::bind(&TransportSubscriberLink::onHeaderWritten, this, _1));

pt->addSubscriberLink(shared_from_this());
Expand Down

0 comments on commit c672d41

Please sign in to comment.