I have installed omniORB successfully on Windows Server 2012. I have two IDL files which I compiled using the omniidl compiler and now have a header file and source file for the two IDL files.
How do you go about writing a client that can connect remotely and make the fuction calls in C++? How does this process work?
I ordered the book "Advanced CORBA Programming with C++" which should be here soon, however, if anyone has experience with writing IIOP clients in C++ if you could explain how the connection is made and making a simple call. I am only making the client as the device already has the iiop server.
I would put this as a comment but I don't have enough rep. If you are working with a cisco DCM (or any cisco product) I would recommend reaching out to cisco.
Just recently I have made a python implementation of CORBA (omniORBpy) with a cisco DCM. I reached out to cisco and they gave me code that made the connection with some examples of method calls as well.
Alternatively omniORB does have some examples showing how to connect a client and server and pass information to each other. See the omniorb documentation. Under chapter 2 "The Basics" they have a few walk throughs.
Hopefully this helps in some way.
Related
I am trying to create a signal/textsecure client using qt and C++, however i cant seem to fibd any C++ bindings for it.
the only bindings i can find are for Go (https://github.com/nanu-c/textsecure/)
is there any way to connect C++ with signal?
edit:
i wanted to clarify some things:
-im talking about the messaging app called Signal (https://signal.org)
-i am trying to write an app for ubuntu touch and am developing on manjaro linux.
On Linux or Unix, you probably want to communicate with other remote applications using some communication protocol, such as HTTP or HTTPS or SOAP or JSONRPC or ONCRPC. Of course read about socket(7) and before that Advanced Linux Programming then about syscalls(2). Consider reading a textbook on Operating Systems
Be sure to study the source code related to Signal. Read their technical documentation.
You surely need to understand the details. So take a few days or weeks to read more about them.
If you want to use some web service, you need to read and understand its documentation and when and how you are allowed to use it. There could be legal or financial issues.
Then you might use HTTP related libraries (e.g. Wt or libonion server side, and libcurl or curlpp client side).
See also in April 2020 the ongoing HelpCovid free software project (for Linux), at least for inspiration. We are coding it in C++.
after a little more digging i found that textsecure bindings are now renamed to libsignal.
after finding that out i found a lib for c/c++
https://github.com/signalapp/libsignal-protocol-c
I am trying to connect my scidb server directly via sockets using C++ under windows environment (Winsock2).
I could only find a python example below for the above purpose which seems quite outdated.
https://github.com/artyom-smirnov/scidb4py
The .proto file shipped with the SciDB 14.12 and the one used in the python example are very much different so the example does not work with the SciDB 14.12.
If someone could help me with preferably a C++ (Windows/Linux) working example or update the existing python example.
Atleast if someone could guide me to the documentation part which explains how to use the message format outlined in the .proto file and what to expect in return.
Thanks.
I believe what you may be looking for is https://github.com/Paradigm4/shim.
It is a HTTP API for SciDB. All you have to do is to install this together with your SciDB. You would then use directly your Winsock (or a HTTP protocol library) directly in C/C++, connecting to the SHIM instance.
Im looking for code that connects to another computer via remote desktop connection and checks if the connection was successful or not.
I packet logged and found out there was a galaxy worth of packets so i was wondering if there was some easy code out there.
There really isn't anything easy about RDP, that protocol stack is huge and builds on the ITU OSI protocols, which includes a fair amount of ASN.1/BER.
Your best bet is the code that's in FreeRDP.
A bit of terminology: you want a "RDP client library for C++".
As others have mentioned, look into the "FreeRDP" and "rdesktop" projects.
With FreeRDP, you're going to get a suite of libraries (each one doing it's thing). With rdesktop, you're going to get a client app (which you have to break the C code out of, and "build" your C++ api around).
If this is a new project, I'd pick FreeRDP over rdesktop, as they have libraries available with your C++ interface already in place.
Do you need to check if an RDP server is present, but not authenticate? In this case all you'd need are the first couple of packets used to negotiate protocol security. You can find the code in FreeRDP in libfreerdp-core/nego.c.
#Blanker1231 : You should have look on rdesktop code , its in c but can be very easily modified to be used in a C++ code , all you have to do is bridge their Struct Stream effectively .
moreover I have worked on a Rdp 7+ implementation ages ago in qt/c++ for a , so recently just for fun of it i used all of my experience and wrote a RDP parser and code generator and open sourced it on https://github.com/shashanksingh/Code-Generator-for-RDP
Right now it dead simple and i am still working on it more intelligent . Word of caution it doesn't generate everything . Examples includes demo.def which on compilation will generate all the class os ms-fscc used in ms-rdp
#Blanker1231 if you ever feel like , just fork the implementation and start pushing stuff in
Is it possible to remotely call c++ native functions from actionscript3 flex 4 application? Can some suggest any sample code? I'm fine with writing a Adobe AIR app. I found a blog giving some ideas, but there was no code
You can use the Socket class to set up a TCP connection to a server that happens to be a compiled C++ executable, and could even be running on the same machine (localhost), that is a very typical use of the Socket class.
But the way your question is worded, it sounds like you want your swf to make function calls to a C++ compiled DLL or similar, which is not possible. Macromedia's Director product allowed this sort of thing with its wonderful Xtras native plug-in architecture (COM based), but the Flash Player has no equivalent**.
**EDIT: Turns out there is some equivalent functionality available for the AIR 2 runtime environment. I'm adding this for the sake of completeness, even though you did not specify that your app is an AIR app.
Check out this Adobe post: http://blogs.adobe.com/cantrell/archives/2010/03/extending_air_applications_with_plugins.html
and this:
http://www.adobe.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.html
also this example:
http://www.adobe.com/devnet/air/flex/articles/air_screenrecording.html
Have a look at Alchemy : http://labs.adobe.com/technologies/alchemy/
You can connect to a TCP server in Flash with the Socket class.
The security requirements for serving policy files can be a bear if you're working in Flash Player rather than AIR.
These examples may help, though I can't guarantee they're up to date for security requirements:
Adobe example: socket policy server
Adobe example: Telnet client
I am writing a cross-platform c++ application that needs to connect to Exchange servers and download mails using ActiveSync.
Is there any library available for ActiveSync (preferably open-source)?
I can't use Windows APIs as they won't run in Linux & Mac.
I used to work with the SynCE project on supporting Windows Mobile devices connected to desktop Linux machines so can offer a few pointers.
Do you mean ActiveSync or AirSync? AirSync is the protocol that used over the air and by ActiveSync to actually shift the data, ActiveSync is the whole stack for syncing a WinMo device connected to your computer. SynCE is the only open source "full stack" equivalent to ActiveSync that I know of, from driver to AirSync to GUI's and integration with OpenSync, and I don't know any open source projects that present themselves as a WinMo device to ActiveSync.
I don't know of any C or C++ implementations of AirSync, but I believe that the Samba and OpenChange teams have made good progress at supporting Exchange servers natively. About a year and a half ago I was told that even supporting the HTTP(s) transport wasn't far away in terms of work needed (but i'm not sure if its been a priority).
While not in C++ and while not even a client library, the SynCE project has open source python code which might be a useful reference if another library cannot be found.
Here is an example of a push mail server that was written by one of the SynCE developers: SynCE Airmail
And the main sync engine can be found here: SynCE SyncEngine
Within that code, I think SyncEngine/airsync.py will be most useful to you.
Digging around the SynCE wiki http://www.synce.org and their mailing list archive is a good way of finding out about problems encountered and surprising details about what the protocol is and isnt sensitive about.
You may find http://libwbxml.opensync.org useful - after the wbxml layer has been decoded AirSync is just XML passing.
And finally, Microsoft do provide documentation for the protocol:
ActiveSync HTTP Protocol Specification
Open Specification Support Team Blog: More ActiveSync
TechNet wiki Exchange ActiveSync Overview
Z-Push might provide you with the start you need.