How to expose a c service / cpp service easily and securely [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to host a cpp service as a executable file and able to track the log, handle the exception and able to handle high load.

You can try c-sevice-interface https://github.com/Taymindis/c-service-interface
This is a small bridge engine which can handle high load of request, any segfault will not break the engine, it will catch and free the thread, it is built on top NGINX, FCGI. You can setup the proxy, load balance, authentication via NGINX before reach to your interface.
The link shown as below is a wiki to Guide you how to startup from scratch.
https://github.com/Taymindis/fcgi-function/wiki/How-to-build-a-cpp-service-on-c-service-interface

Related

Configure VPN split tunneling for macOS based on selected apps [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
My task is to develop split tunnelling feature for macOS so if I am connected to a VPN connection only selected apps can send their traffic to the VPN while other apps will be using local internet connection.
I noticed other VPN apps like expressvpn offering these features but I couldn't find any help over the internet how to achieve that.
I haven't checked this myself but OpenVPN daemon exposes set of APIs which can be used to create multiple VPN tunnels for each application, as mentioned in your question.
So the solution of this problem is NKE, Apple's Network Kernel Extensions you can write your own kext which handles network operations on various levels.
I hope this clue will help someone in future.

Testing a TCP socket server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've written a simple TCP socket server in c++ that uses sys/socket and OpenSSL..
I wish to use this server in production and I haven't been able to find clear methods for testing a socket server at scale.
What are the best methods and/or tool for testing sockets?
Unless you want to write a custom test client, which obviously doesn't have to be in C++, there are some common tools that can be used to connect to your server. For example, you can use curl and telnet. Google for these tools and how to use them if you are not already familiar with them. The following answers might be helpful:
https connection using CURL from command line
https://superuser.com/questions/346958/can-the-telnet-or-netcat-clients-communicate-over-ssl

Some simple socket questions for C++ [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I've done a fair amount of coding in C++, and I'm looking into sockets. Can I listen to a socket on another computer on my network if there's no client program running on it? I would use this to listen to the HTTP port.
No, the program that listens on the socket must be running on the computer where you want to listen on. You could use a tool like ssh to log in to the other computer and launch your program there - but your program would have to be copied to the other computer first.
Well, you can kind of fake it with firewall rules to redirect traffic to your machine and back again, but the real socket is always on the computer that is running the program.

Has anyone used Facebook Scribe? (the tool for logging everything) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How does it work? (Explain it in terms of server, writes, GETs, values, whatever).
DOes it work with Win32 apps?
I'll try to explain:
There is an application, with thrift
class/interface. When event that you
want to log occures, you send
message to the
Server, which collect logs from many
sources (application, server logs,
etc)
And then server decides what do
do with it: generate visualization,
send over tcp/ip, store in a file,
nfs, hdfs, you decide.
Server and client can be the same
app or machine, or this log data can
be sent from client over internet.
Definitely works with win32 apps.
It Works Great.
We're using Scribe to test some message processing.
We're sending Apache logs with Scribe. (Under Ubuntu)

How to pass data from client to server when using gSOAP? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am trying to exchange data between client and server using gSOAP. Actually, I succeeded to send data from client to server but not from server to client. So, could someone please explain what functions to use to pass data from server to client?
Thanks for your time and replies,
The only way I know is by invoking with a function soap_call
See the example of calc in gsoap package