Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have two C++ projects, which communicate via a socket using winsock2. Now, I want to encrypt the communication using SSL (this is the easiest and fastest way, right?).
I tried to find any library or good tutorial, but I did not find a good one that worked for me (e.g. this sounds simple, but I wasn't able to include the header file without errors).
Do you have any suggestion / good tutorial /good library for encrypting winsock2-sockets fast?
When dealing with a low level language like C++, SSL/TLS is not simple. You have to deal with learning one of the many SSL/TLS libraries. Additionally, while some of the samples for these libraries may seem simple, the nuances of SSL/TLS are not.
I can point you to several libraries that work on Windows, as well as their tags in Stackoverflow.
Boost (tag)
GnuTLS (tag)
OpenSSL (tag)
Schannel (tag)
libressl (tag)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for a library that helps with network packet creation/parsing. Something as Python dpkg library. I need to change IP addresses, to check ports and to analyze payload of TCP/UDP packets which I have as Ethernet frames.
I know this can be done manually, e.g. as is presented in WinPcap docs or libpcap docs. Are there any library for this?
C++ on Windows.
Take a look to libcrafter. It's a library for creation and decoding of network packets very similar to Scapy. Not sure if it can work on Windows but you can try.
I know it's been a while this answer but you should try libtins. It is a really versatile, object-oriented and efficient library.
Disclaimer: I was one of the creators of the library and it is actively maintained by Matias Fontanini.
Have a look at the plugins and API for for Wireshark.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Is there a C++ library that provides functions for uploading/downloading files over http without having to deal with sockets etc?
Not quite C++, but libcurl is a very popular and widely used HTTP client library.
Try cURLpp (formerly cURL++), the official C++ binding to libcurl. Here's an example of downloading from a URL and outputting to standard out.
Please have a look at https://code.google.com/p/ffead-cpp/, it has lovely REST-full support for uploading single/multiple files. An example can be found at https://code.google.com/p/ffead-cpp/wiki/ExampleRestController.
Yes, cURL:
http://curl.haxx.se/libcurl/
Look at SFML. It is very easy to use and it has support for both HTTP and FTP connections.
► http://www.sfml-dev.org/
It's mainly intended for game development, but it can be used for other things as well.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am looking for a lightweight opensource library/framework preferably written in C/C++ (it doesn't have to support x languages and should be easy to understand and use.) which can be used to make RPC over internal linux sockets or pipes.
In other words I am looking for an RPC possibility which can be run over some of the linux IPC mechanisms.
Thanks
Look at msgpack-rpc. It's easy and very simple RPC implementation.
Not exactly lightwieght, but Dbus is an answer and it's standard on most linux distributions these days.
I guess you don't want any fancy framework and can handle simple library calls. The linux rpc library should then be sufficient: See the manpage, and maybe this tutorial.
SUN ONC RPC library for Linux is a good solution. Also you can use the rpcgen compiler to generate server and client stubs.
All you have to do is to write an .x in the RPCL language an compile it using rpcgen.
Here is an example that I have published in github: https://github.com/issamabd/SDL-PPONG
It uses RPC calls to connect two PingPong players over the network.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
im starting a new project and for the first time i want to be cross-platform. But the tricky is my project would involve listen server, cryptos etc., etc. So i was wondering what is the best solution for cross-platform development (OpenSSL, instead of MSCrypto etc.) that would be easy to write with VS2010 (yeah the RC). The language is still not specified (depends on witch we would be easier) but im leaning to Visual C++.
In Cross-Platform i mean windows/generic unix compilation.
Qt4 is a complete crossplatform framework, including a very strong socket library.
also Boost.Asio http://www.boost.org/doc/libs/1_42_0/libs/libraries.htm.
The Poco C++ library may be what you are looking for.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
What's an easy to use SNMP client library for c++?
SNMP++ is also a nice and open source library for C++ developers.
http://www.agentpp.com/api/cpp/snmp_pp.html
Probably the best choice is net-snmp. Note that the library has "C" linkage but will work just fine with C++.
I have found that Net-SNMP does not support multi-threading with v3 type queries. So if you are writing an SNMP monitoring tool that will be polling multiple hosts then you will need to take this into consideration.
OpenSNMP contains a complete multi-threaded implementation of SNMPv3 that is done in C++ (complete with classes, etc). It's not heavily used and maintained though.
Net-SNMP with v3 over TLS/DTLS is likely to be threadsafe as it's really SNMPv3/USM that contains threading issues. I think.