46 return connection_manager;
50 : connection_id_counter_(0)
111 for(S_Connection::iterator itr = local_connections.begin();
112 itr != local_connections.end();
164 V_Connection::iterator conn_it = local_dropped.begin();
165 V_Connection::iterator conn_end = local_dropped.end();
166 for (;conn_it != conn_end; ++conn_it)
175 std::string client_uri =
"";
176 ROSCPP_LOG_DEBUG(
"UDPROS received a connection from [%s]", client_uri.c_str());
181 conn->initialize(transport,
true, NULL);
187 std::string client_uri = transport->getClientURI();
188 ROSCPP_LOG_DEBUG(
"TCPROS received a connection from [%s]", client_uri.c_str());
200 if (
header.getValue(
"topic", val))
202 ROSCPP_CONN_LOG_DEBUG(
"Connection: Creating TransportSubscriberLink for topic [%s] connected to [%s]",
203 val.c_str(), conn->getRemoteString().c_str());
206 sub_link->initialize(conn);
207 ret = sub_link->handleHeader(
header);
209 else if (
header.getValue(
"service", val))
211 ROSCPP_LOG_DEBUG(
"Connection: Creating ServiceClientLink for service [%s] connected to [%s]",
212 val.c_str(), conn->getRemoteString().c_str());
215 link->initialize(conn);
216 ret = link->handleHeader(
header);
220 ROSCPP_LOG_DEBUG(
"Got a connection for a type other than 'topic' or 'service' from [%s]. Fail.",
221 conn->getRemoteString().c_str());