Codebase list httping / 91909cf
misc clean-up Folkert van Heusden 7 years ago
12 changed file(s) with 18 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
7373
7474 void version(void)
7575 {
76 fprintf(stderr, gettext("HTTPing v" VERSION ", (C) 2003-2015 folkert@vanheusden.com\n"));
76 fprintf(stderr, gettext("HTTPing v" VERSION ", (C) 2003-2016 folkert@vanheusden.com\n"));
7777 #ifndef NO_SSL
7878 fprintf(stderr, gettext(" * SSL support included (-l)\n"));
7979 #endif
0 .\" Copyright Folkert van Heusden, 2003-2015
0 .\" Copyright Folkert van Heusden, 2003-2016
11 .\"
22 .\" This file may be copied under the conditions described
33 .\" in the GNU GENERAL PUBLIC LICENSE, version 2
44 .\" that can be found on the website of the free software
55 .\" foundation.
66 .\"
7 .TH HTTPING 1 2015-03 "httping"
7 .TH HTTPING 1 2016-09 "httping"
88 .SH NAME
99 httping - meten van de latency en doorvoorsnelheid van een http server
1010 .SH SAMENVATTING
0 .\" Copyright Folkert van Heusden, 2003-2015
0 .\" Copyright Folkert van Heusden, 2003-2016
11 .\"
22 .\" This file may be copied under the conditions described
33 .\" in the GNU GENERAL PUBLIC LICENSE, version 2
44 .\" that can be found on the website of the free software
55 .\" foundation.
66 .\"
7 .TH HTTPING 1 2015-07 "httping"
7 .TH HTTPING 1 2016-09 "httping"
88 .SH ИМЯ
99 httping - измеряет задержку и пропускную способность веб-сервера
1010 .SH СИНТАКСИС
0 .\" Copyright Folkert van Heusden, 2003-2015
0 .\" Copyright Folkert van Heusden, 2003-2016
11 .\"
22 .\" This file may be copied under the conditions described
33 .\" in the GNU GENERAL PUBLIC LICENSE, version 2
44 .\" that can be found on the website of the free software
55 .\" foundation.
66 .\"
7 .TH HTTPING 1 2015-07 "httping"
7 .TH HTTPING 1 2016-09 "httping"
88 .SH NAME
99 httping - measure the latency and throughput of a webserver
1010 .SH SYNOPSIS
0 HTTPing is (C) 2003-2015 by folkert@vanheusden.com
0 HTTPing is (C) 2003-2016 by folkert@vanheusden.com
11
22 The AGPL version 3 applies to this program. That document can be found
33 on the website of the free software foundation.
352352
353353 request_headers_len += snprintf(&request_headers[request_headers_len], sizeof request_headers - request_headers_len, "\r\n");
354354
355 if ((rc = connect_to(fd, ai, timeout, tfo, request_headers, request_headers_len, &rh_sent)) < 0)
355 if ((rc = connect_to(fd, ai, timeout, tfo, request_headers, request_headers_len, &rh_sent)) == -1)
356356 return rc;
357357
358358 if (!rh_sent)
00 # Dutch translations for HTTPing package.
1 # Copyright (C) 2015 folkert van heusden
1 # Copyright (C) 2016 folkert van heusden
22 # This file is distributed under the same license as the HTTPing package.
3 # folkert van heusden <mail@vanheusden.com>, 2015.
3 # folkert van heusden <mail@vanheusden.com>, 2016.
44 # Translated by Joris Zwart - http://joriszwart.nl/
55 #
66 msgid ""
00 # Russian translation for HTTPing package.
1 # Copyright (C) 2015 folkert van heusden
1 # Copyright (C) 2016 folkert van heusden
22 # This file is distributed under the same license as the HTTPing package.
3 # folkert van heusden <mail@vanheusden.com>, 2015.
3 # folkert van heusden <mail@vanheusden.com>, 2016.
44 # Translated by Way, No - http://noway421.github.io/
55 #
66 msgid ""
2222 unsigned char io_buffer[256] = { 0 };
2323 int io_len = 0, rc = -1;
2424
25 if ((rc = connect_to(fd, ai, timeout, NULL, NULL, 0, NULL)) < 0)
25 if ((rc = connect_to(fd, ai, timeout, NULL, NULL, 0, NULL)) == -1)
2626 return rc;
2727
2828 /* inform socks server about the auth. methods we support */
3535 {
3636 int flag = 1;
3737
38 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(int)) < 0)
38 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(int)) == -1)
3939 {
4040 set_error(gettext("could not set TCP_NODELAY on socket (%s)"), strerror(errno));
4141 return -1;
1111 int sfd = 0;
1212 int qlen = 5;
1313
14 if ((sfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {
14 if ((sfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
1515 fprintf(stderr, "socket(): %s\n", strerror(errno));
1616 exit(EXIT_FAILURE);
1717 }
1818
1919 #ifdef TCP_FASTOPEN
20 if (setsockopt(sfd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen)) < 0) {
20 if (setsockopt(sfd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen)) == -1) {
2121 fprintf(stderr, "setsockopt(): %s\n", strerror(errno));
2222 exit(EXIT_FAILURE);
2323 }
0 VERSION=2.4
0 VERSION=2.5