[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 34/154: Use s in setsockopt()
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 34/154: Use s in setsockopt() |
Date: |
Mon, 19 Aug 2019 10:15:46 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libmicrohttpd.
commit d7a3f8260761e16928f5a58cd9e83085bb69aa15
Author: ng0 <address@hidden>
AuthorDate: Fri Jul 19 21:36:12 2019 +0000
Use s in setsockopt()
---
src/microhttpd/mhd_send.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 36007929..656a3f14 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -132,7 +132,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
#if TCP_CORK
if ((use_corknopush) && (have_cork && ! want_cork))
{
- if (0 == setsockopt (connection->socket_fd,
+ if (0 == setsockopt (s,
IPPROTO_TCP,
TCP_CORK,
(const void *) &off_val,
@@ -140,7 +140,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
{
connection->sk_tcp_nodelay = true;
}
- else if (0 == setsockopt (connection->socket_fd,
+ else if (0 == setsockopt (s,
IPPROTO_TCP,
TCP_NODELAY,
(const void *) &on_val,
@@ -158,7 +158,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
* exist and we can disregard TCP_NODELAY unless requested. */
if ((use_corknopush) && (have_cork && ! want_cork))
{
- if (0 == setsockopt (connection->socket_fd,
+ if (0 == setsockopt (s,
IPPROTO_TCP,
TCP_NOPUSH,
(const void *) &on_val,
@@ -171,7 +171,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
#if TCP_NODELAY
if ((! use_corknopush) && (! have_cork && want_cork))
{
- if (0 == setsockopt (connection->socket_fd,
+ if (0 == setsockopt (s,
IPPROTO_TCP,
TCP_NODELAY,
(const void *) &off_val,
@@ -217,7 +217,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
{
/* plaintext transmission */
#if MSG_MORE
- ret = send (connection->socket_fd,
+ ret = send (s,
buffer,
buffer_size,
(want_cork ? MSG_MORE : 0));
@@ -254,7 +254,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
{
if (! have_cork && want_cork && ! have_more)
{
- if (0 == setsockopt (connection->socket_fd,
+ if (0 == setsockopt (s,
IPPROTO_TCP,
TCP_CORK,
(const void *) &on_val,
@@ -262,7 +262,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
{
connection->sk_tcp_nodelay_on = false;
}
- else if (0 == setsockopt (connection->socket_fd,
+ else if (0 == setsockopt (s,
IPPROTO_TCP,
TCP_NODELAY,
(const void *) &off_val,
@@ -285,7 +285,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
{
if (have_cork && ! want_cork)
{
- if (0 == setsockopt (connection->socket_fd,
+ if (0 == setsockopt (s,
IPPROTO_TCP,
TCP_NODELAY,
(const void *) &on_val,
@@ -346,7 +346,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
{
if (! have_cork && want_cork)
{
- if (0 == setsockopt (connection->socket_fd,
+ if (0 == setsockopt (s,
IPPROTO_TCP,
TCP_NODELAY,
(const void *) &off_val,
@@ -371,7 +371,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
if ((ret == header_len + buffer_len) && have_cork)
{
// response complete, definitely uncork!
- setsockopt (connection->socket_fd,
+ setsockopt (s,
IPPROTO_TCP,
TCP_CORK,
(const void *) &off_val,
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] 45/154: fix compiler error., (continued)
- [GNUnet-SVN] [libmicrohttpd] 45/154: fix compiler error., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 44/154: remove verbose comments in mhd_send.c, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 55/154: doxygen: MHD_SSO, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 30/154: comments, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 49/154: more OLDSOCK., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 59/154: sendfile and netbsd, comment., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 31/154: combine ifs, fix uninitialized var error, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 62/154: fix errors., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 35/154: use using_tls, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 36/154: implement TCP_NOPUSH branch content, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 34/154: Use s in setsockopt(),
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 38/154: check getsockopt's., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 64/154: move sendfile function work to connection.c, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 58/154: start SENDMSG/WRITEV., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 60/154: doxygen fix., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 57/154: cover the case of TCP_NOPUSH and TCP_CORK coexisting on the same OS., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 56/154: doxygen, links, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 52/154: doxygen, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 40/154: doxygen for _send2, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 48/154: connection.c: preprocessor ifdef some setsockopts., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 46/154: Merge remote-tracking branch 'origin/master' into dev/ng0/gsoc2019, gnunet, 2019/08/19