50 std::string localStreamingPortName =
m_local +
"/rawdata:i";
51 std::string remoteStreamingPortName =
m_remote +
"/rawdata:o";
52 std::string localRPCPortName =
m_local +
"/rpc:i";
53 std::string remoteRPCPortName =
m_remote +
"/rpc:o";
57 if(!m_rpcPort.open(localRPCPortName))
59 yCError(RAWVALUESPUBLISHERCLIENT) <<
"Failure opening RPC port" << localStreamingPortName;
65 if(!m_streamingPort.open(localStreamingPortName))
67 yCError(RAWVALUESPUBLISHERCLIENT) <<
"Failure opening streaming port" << localStreamingPortName;
71 m_streamingPort.useCallback();
77 if (!yarp::os::Network::connect(localRPCPortName, remoteRPCPortName,
m_carrier))
79 yCError(RAWVALUESPUBLISHERCLIENT) <<
80 "Failure in connecting remote port" << remoteRPCPortName <<
81 "to local port" << localRPCPortName;
83 yCError(RAWVALUESPUBLISHERCLIENT) <<
84 "Check that the specified RawValuesPublisherServer is up. Closing.";
91 if(!yarp::os::Network::connect(remoteStreamingPortName, localStreamingPortName,
m_carrier))
93 yCError(RAWVALUESPUBLISHERCLIENT) <<
94 "Failure in connecting remote port" << remoteStreamingPortName <<
95 "to local port" << localStreamingPortName;
97 yCError(RAWVALUESPUBLISHERCLIENT) <<
98 "Check that the specified RawValuesPublisherServer is up. Closing.";
104 if (!m_RPCInterface.yarp().attachAsClient(m_rpcPort)) {
105 yCError(RAWVALUESPUBLISHERCLIENT,
"Failure opening Thrift-based RPC interface.");
111 yCInfo(RAWVALUESPUBLISHERCLIENT) <<
"Open completes";