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
Related
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
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Let me say that I am doing this first time and I know very little in this domain (learning more).
My requirement is to implement a secure channel of communication between server and client.
I will be proved x509 certificate on both side (server/client). Communication will via sockets.
One option is to use openssl. But priority is to develop it on the Windows API.
I see two options cryptolib & sspi.
Please suggest what is best and proven option on Windows.
OpenSSL works just fine on Windows, and there are precompiled DLLs available if you do not want to compile it yourself.
But, if for whatever reason, you cannot use OpenSSL, then have a look at SChannel:
Secure Channel
Creating a Secure Connection Using Schannel
It uses SSL/TLS and CryptoAPI internally. It also allows you to do your own socket I/O, so you can add it to existing socket code.
Alternatively, have a look at WinSock's built-in security:
Winsock Secure Socket Extensions
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.
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)
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