7#include <boost/assert.hpp>
15#include <sys/socket.h>
45 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 cop...
Definition name_resolution.h:38
A plain stream, permitting reading, writing, and closing.
Definition stream.h:32
Definition tcp_stream.h:23
AddressHandle getSockName() const
Return bound address of socket.
Definition tcp_stream.cc:22
void keepAlive(bool enable, unsigned int delay=10)
Set keep-alive delay in seconds.
Definition tcp_stream.cc:40
TcpStream(std::unique_ptr< uv_tcp_t > tcp)
Definition tcp_stream.h:25
TcpStream & operator=(const TcpStream &)=delete
TcpStream(TcpStream &&)=default
TcpStream & operator=(TcpStream &&)=default
Promise< void > closeReset()
Definition tcp_stream.cc:17
TcpStream(const TcpStream &)=delete
~TcpStream() override=default
AddressHandle getPeerName() const
Return address of peer.
Definition tcp_stream.cc:31
void noDelay(bool enable)
Enable Nagle's algorithm.
Definition tcp_stream.cc:44
Definition async_work.cc:17