提交 c3ef85f5 编写于 作者: muleisheng's avatar muleisheng 提交者: Calvin Miao

bridge: add proto name in conf for debugging

上级 44046321
remote_ip : "127.0.0.2"
remote_port : 8901
remote_ip: "127.0.0.2"
remote_port: 8901
proto_name: "ADCTrajectory"
remote_ip: "127.0.0.3"
remote_port: 8905
proto_name: "LocalizationEstimate"
......@@ -5,4 +5,5 @@ package apollo.bridge;
message UDPBridgeRemoteInfo {
optional string remote_ip = 1 [default = "127.0.0.1"];
optional int32 remote_port = 2 [default = 8900];
optional string proto_name = 3 [default = "ProtoMsgName"];
}
......@@ -39,8 +39,10 @@ bool UDPBridgeComponent<T>::Init() {
}
remote_ip_ = udp_bridge_remote.remote_ip();
remote_port_ = udp_bridge_remote.remote_port();
AINFO << "UDP Bridge remote ip is : "<< remote_ip_;
AINFO << "UDP Bridge remote port is : "<< remote_port_;
proto_name_ = udp_bridge_remote.proto_name();
AINFO << "UDP Bridge remote ip is: "<< remote_ip_;
AINFO << "UDP Bridge remote port is: "<< remote_port_;
AINFO << "UDP Bridge for Proto is: "<< proto_name_;
return true;
}
......
......@@ -59,6 +59,7 @@ class UDPBridgeComponent final
common::monitor::MonitorLogBuffer monitor_logger_buffer_;
unsigned int remote_port_ = 0;
std::string remote_ip_ = "";
std::string proto_name_ = "";
BridgeBuffer<char> buf_;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册