diff options
author | Thomas Snider <tjps636@gmail.com> | 2017-03-22 22:02:02 -0700 |
---|---|---|
committer | Thomas Snider <tjps636@gmail.com> | 2017-04-05 11:31:43 -0700 |
commit | ad415bc16afdb4fdb6d619624762f1324751a824 (patch) | |
tree | f36dd6aa64fa7e498e60195008922e3a9c883f0c /src/netbase.h | |
parent | 02d64bd929c9663ba38e96721c6dbd89972d043d (diff) |
[net] Added SetSocketNoDelay() utility function
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h index dd33b6e47e..c9d108aadd 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -59,6 +59,8 @@ std::string NetworkErrorString(int err); bool CloseSocket(SOCKET& hSocket); /** Disable or enable blocking-mode for a socket */ bool SetSocketNonBlocking(SOCKET& hSocket, bool fNonBlocking); +/** Set the TCP_NODELAY flag on a socket */ +bool SetSocketNoDelay(SOCKET& hSocket); /** * Convert milliseconds to a struct timeval for e.g. select. */ |