summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-07-15 07:56:13 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-07-15 07:56:13 +0000
commite4da11764219965d290a2bc0196b02600e2dab13 (patch)
tree0804376c7b006cc589890345be5a0c6b67751e69 /network_io
parent84778067e38c6a17fb38ede2d1055b76e00606cb (diff)
downloadlibapr-e4da11764219965d290a2bc0196b02600e2dab13.tar.gz
APR occurances to update for socket_opt_get/set and socket_timeout_get/set
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63678 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r--network_io/unix/sendrecv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/network_io/unix/sendrecv.c b/network_io/unix/sendrecv.c
index 0d4ac9e97..41bfd6dd5 100644
--- a/network_io/unix/sendrecv.c
+++ b/network_io/unix/sendrecv.c
@@ -293,7 +293,7 @@ apr_status_t apr_sendfile(apr_socket_t *sock, apr_file_t *file,
apr_size_t hdrbytes;
/* cork before writing headers */
- rv = apr_setsocketopt(sock, APR_TCP_NOPUSH, 1);
+ rv = apr_socket_opt_set(sock, APR_TCP_NOPUSH, 1);
if (rv != APR_SUCCESS) {
return rv;
}
@@ -316,7 +316,7 @@ apr_status_t apr_sendfile(apr_socket_t *sock, apr_file_t *file,
}
if (hdrbytes < total_hdrbytes) {
*len = hdrbytes;
- return apr_setsocketopt(sock, APR_TCP_NOPUSH, 0);
+ return apr_socket_opt_set(sock, APR_TCP_NOPUSH, 0);
}
}
@@ -355,7 +355,7 @@ do_select:
if (rv == -1) {
*len = nbytes;
rv = errno;
- apr_setsocketopt(sock, APR_TCP_NOPUSH, 0);
+ apr_socket_opt_set(sock, APR_TCP_NOPUSH, 0);
return rv;
}
@@ -363,7 +363,7 @@ do_select:
if (rv < *len) {
*len = nbytes;
- arv = apr_setsocketopt(sock, APR_TCP_NOPUSH, 0);
+ arv = apr_socket_opt_set(sock, APR_TCP_NOPUSH, 0);
if (rv > 0) {
/* If this was a partial write, return now with the
@@ -393,12 +393,12 @@ do_select:
if (arv != APR_SUCCESS) {
*len = nbytes;
rv = errno;
- apr_setsocketopt(sock, APR_TCP_NOPUSH, 0);
+ apr_socket_opt_set(sock, APR_TCP_NOPUSH, 0);
return rv;
}
}
- apr_setsocketopt(sock, APR_TCP_NOPUSH, 0);
+ apr_socket_opt_set(sock, APR_TCP_NOPUSH, 0);
(*len) = nbytes;
return rv < 0 ? errno : APR_SUCCESS;