pbRPCpp icon indicating copy to clipboard operation
pbRPCpp copied to clipboard

fail to connect to segment localhost

Open damian123 opened this issue 9 years ago • 0 comments

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

damian123 avatar Nov 23 '16 19:11 damian123