+ /* print some info about the socket, used to test some TCP_* options */
+ if (verbosity) {
+ len = sizeof(buffer);
+ if (getsockopt(sock, SOL_TCP, TCP_CONGESTION, buffer, &len) < 0) {
+ perror("Cannot read congestion algorithm");
+ } else {
+ buffer[len]=0;
+ printf("Congestion algorithm %s\n", buffer);
+ }
+ }