Clementine
|
Encapsulates the flags needed for TCP. More...
#include <tcp.hpp>
Public Types | |
typedef basic_endpoint< tcp > | endpoint |
The type of a TCP endpoint. | |
typedef basic_stream_socket< tcp > | socket |
The TCP socket type. | |
typedef basic_socket_acceptor< tcp > | acceptor |
The TCP acceptor type. | |
typedef basic_resolver< tcp > | resolver |
The TCP resolver type. | |
typedef basic_socket_iostream< tcp > | iostream |
The TCP iostream type. | |
typedef asio::detail::socket_option::boolean< ASIO_OS_DEF(IPPROTO_TCP), ASIO_OS_DEF(TCP_NODELAY)> | no_delay |
Socket option for disabling the Nagle algorithm. More... | |
Public Member Functions | |
int | type () const ASIO_NOEXCEPT |
Obtain an identifier for the type of the protocol. | |
int | protocol () const ASIO_NOEXCEPT |
Obtain an identifier for the protocol. | |
int | family () const ASIO_NOEXCEPT |
Obtain an identifier for the protocol family. | |
Static Public Member Functions | |
static tcp | v4 () ASIO_NOEXCEPT |
Construct to represent the IPv4 TCP protocol. | |
static tcp | v6 () ASIO_NOEXCEPT |
Construct to represent the IPv6 TCP protocol. | |
Friends | |
bool | operator== (const tcp &p1, const tcp &p2) |
Compare two protocols for equality. | |
bool | operator!= (const tcp &p1, const tcp &p2) |
Compare two protocols for inequality. | |
Encapsulates the flags needed for TCP.
The asio::ip::tcp class contains flags necessary for TCP sockets.
typedef asio::detail::socket_option::boolean< ASIO_OS_DEF(IPPROTO_TCP), ASIO_OS_DEF(TCP_NODELAY)> asio::ip::tcp::no_delay |
Socket option for disabling the Nagle algorithm.
Implements the IPPROTO_TCP/TCP_NODELAY socket option.