Gepetto / gepetto-viewer-corba

CORBA server/client for SceneViewer.
Other
11 stars 25 forks source link

C++ Equivalent #162

Open crippler123 opened 2 years ago

crippler123 commented 2 years ago

Hi, is there a C++ equivalent?

In client side, what is the ior string

corbaloc:iiop:: ?

florent-lamiraux commented 2 years ago

Can you make your question more accurate ? The name of the protocol is the same in C++ and in python.

crippler123 commented 2 years ago

Hi Thanks for answering.

My question is for the following post: https://github.com/Gepetto/gepetto-viewer-corba/issues/103

Recently I've started to work with omniORB in windows.

Currently, I don't want to use a naming service, and I want to write a simple client-server example.

I've tried to write client-server with C++, based on the python example, and the client throws me TRANSIENT exception.

crippler123 commented 2 years ago

calc.zip

Please preview the attached files.

server - server application client - client application Calculator.idl - idl of calculator Calculator.hh/cc cpp files generated by omniidl

Tried to run as follwing:

server.exe -ORBendPoint', 'giop:tcp:localhost:12321 client.exe corbaloc::localhost:12321/CalcServer

client throws TRANSIENT exception

I've tried also to diable firewall and antivirus, and even to run in admin mode, still the same.

florent-lamiraux commented 2 years ago

Here is an example of client implemented in C++: https://github.com/humanoid-path-planner/hpp-corbaserver/blob/master/src/client.cc The associated idl definitions are here https://github.com/humanoid-path-planner/hpp-corbaserver/tree/master/idl/hpp/corbaserver.

Can you compare your implementation with this example ?

crippler123 commented 2 years ago

I'm afraid it's too advanced for me. I've attached my code before your last reply, can you review it?

jmirabel commented 2 years ago

There are c++ clients in this repo. https://github.com/Gepetto/gepetto-viewer-corba/blob/master/include/gepetto/viewer/corba/client.hh