Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ Equivalent #162

Open
crippler123 opened this issue Apr 18, 2022 · 6 comments
Open

C++ Equivalent #162

crippler123 opened this issue Apr 18, 2022 · 6 comments

Comments

@crippler123
Copy link

Hi, is there a C++ equivalent?

In client side, what is the ior string

corbaloc:iiop:: ?

@florent-lamiraux
Copy link
Contributor

florent-lamiraux commented Apr 19, 2022

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

@crippler123
Copy link
Author

Hi
Thanks for answering.

My question is for the following post: #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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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

@jmirabel
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants