1

I was wondering if I could write a C socket program to remotely check the number of TCP connections a web server can accept concurrently. A naive solution which I came up with is to keep calling connect() to the server port in a loop till I get a -1 status return. I am somehow convinced that there is a better way to do it, just could not find it anywhere.

yobro97
  • 1,125
  • 8
  • 23

0 Answers0