7#include <boost/assert.hpp>
14#include <sys/socket.h>
39 void keepAlive(
bool enable,
unsigned int delay = 10);
AddressHandle is a light-weight wrapper around a struct / sockaddr_in(6), and is therefore cheap to c...
Definition name_resolution.h:32
StreamBase(std::unique_ptr< Stream > stream)
Definition stream.h:37
AddressHandle getSockName() const
Return bound address of socket.
Definition tcp_stream.cc:15
void keepAlive(bool enable, unsigned int delay=10)
Set keep-alive delay in seconds.
Definition tcp_stream.cc:33
TcpStream(std::unique_ptr< uv_tcp_t > tcp)
Definition tcp_stream.h:24
TcpStream & operator=(const TcpStream &)=delete
TcpStream(TcpStream &&)=default
TcpStream & operator=(TcpStream &&)=default
TcpStream(const TcpStream &)=delete
~TcpStream() override=default
AddressHandle getPeerName() const
Return address of peer.
Definition tcp_stream.cc:24
void noDelay(bool enable)
Enable Nagle's algorithm.
Definition tcp_stream.cc:37
Definition async_work.cc:18