From b45fec337aff8e04bebaf6e898a499f05ee6b0d6 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 28 Jul 2011 15:13:04 +0200 Subject: Tuning of TCP sockets is done at a single place Instead of being spread throughout the codebase, the tuning is done in tune_tcp_socket() function. Signed-off-by: Martin Sustrik --- src/ip.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/ip.hpp') diff --git a/src/ip.hpp b/src/ip.hpp index ec2db43..8a690b0 100644 --- a/src/ip.hpp +++ b/src/ip.hpp @@ -22,6 +22,7 @@ #define __ZMQ_IP_HPP_INCLUDED__ #include "platform.hpp" +#include "fd.hpp" #ifdef ZMQ_HAVE_WINDOWS #include "windows.hpp" @@ -30,6 +31,7 @@ #include #include #include +#include #include #endif @@ -60,9 +62,12 @@ namespace zmq int resolve_ip_hostname (sockaddr_storage *addr_, socklen_t *addr_len_, const char *hostname_); - // This function sets up address for UNIX domain transport. + // This function sets up address for UNIX domain transport. int resolve_local_path (sockaddr_storage *addr_, socklen_t *addr_len_, const char* pathname_); + + // Tunes the supplied TCP socket for the best latency. + void tune_tcp_socket (fd_t s_); } #endif -- cgit v1.2.3