macchina.io
macchina.io copied to clipboard
Unix domain socket does not work on RemotingNG ServerHelper::enableEvents() Method
Describe the bug
Unix domain socket does not work on RemotingNG ServerHelper::enableEvents() Method.
Steps to Reproduce
-
modify /platform/RemotingNG/samples/TimeServerTCP/TimeServer.cpp line 91-93 as following:
// register TCP listener Poco::RemotingNG::TCP::Listener::Ptr pListener = new Poco::RemotingNG::TCP::Listener("/home/yidan/timeserver.sock");//using unix domain socket std::string listener = Poco::RemotingNG::ORB::instance().registerListener(pListener);
-
Compiling TimeServerTCP.
-
The output we get:
Listener registered for protocol: tcp and endpoint: Registered RemoteObject, path: tcp/%2Fhome%2Fyidan%2Ftimeserver.sock/Services.TimeService/TheClock, URI: remoting.unix://%2Fhome%2Fyidan%2Ftimeserver.sock/tcp/Services.TimeService/TheClock Not found: remote object: remoting.unix://%2fhome%2fyidan%2ftimeserver.sock/tcp/Services.TimeService/TheClock
macchina.io Version
- 2020.1
- 2021.1
- 2022.1
Compiler and Version
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
Operating System and Version
Linux yidan-dev-Virtual-Machine 5.4.0-120-generic #136~18.04.1-Ubuntu SMP Fri Jun 10 18:00:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux