pbRPCpp
pbRPCpp copied to clipboard
fail to connect to segment localhost
I ran the test echo server but I am getting an error: "fail to connect to segment localhost"
pbRPCpp\src\ShmRpcServer.cpp
void ShmRpcServer::Run() {
if( ! inQueue_->startCreate(segmentName_ + "-c2s", boost::bind( &ShmRpcServer::messageReceived, this, _1))
|| ! outQueue_->startCreate(segmentName_ + "-s2c") )
{
--> GOOGLE_LOG(FATAL) << "fail to connect to segment " << segmentName_;
}
}am running server.cpp main() with the port number 234234
I am wondering why we add "-c2s" to the segment name
env: Windows 10, Visual Studio 2015. Compiled for x86