Encapsulates the flags needed for TCP. More...
#include <tcp.hpp>
Public Types | |
typedef basic_socket_acceptor < tcp > | acceptor |
The TCP acceptor type. | |
typedef basic_endpoint< tcp > | endpoint |
The type of a TCP endpoint. | |
typedef basic_socket_iostream < tcp > | iostream |
The TCP iostream type. | |
typedef asio::detail::socket_option::boolean < IPPROTO_TCP, TCP_NODELAY > | no_delay |
Socket option for disabling the Nagle algorithm. | |
typedef basic_resolver< tcp > | resolver |
The TCP resolver type. | |
typedef basic_resolver_iterator< tcp > | resolver_iterator |
The type of a resolver iterator. | |
typedef basic_resolver_query< tcp > | resolver_query |
The type of a resolver query. | |
typedef basic_stream_socket< tcp > | socket |
The TCP socket type. | |
Public Member Functions | |
int | family () const |
Obtain an identifier for the protocol family. | |
int | protocol () const |
Obtain an identifier for the protocol. | |
int | type () const |
Obtain an identifier for the type of the protocol. | |
Static Public Member Functions | |
static tcp | v4 () |
Construct to represent the IPv4 TCP protocol. | |
static tcp | v6 () |
Construct to represent the IPv6 TCP protocol. | |
Private Member Functions | |
tcp (int family) | |
Private Attributes | |
int | family_ |
Friends | |
bool | operator!= (const tcp &p1, const tcp &p2) |
Compare two protocols for inequality. | |
bool | operator== (const tcp &p1, const tcp &p2) |
Compare two protocols for equality. |
Encapsulates the flags needed for TCP.
The asio::ip::tcp class contains flags necessary for TCP sockets.
typedef basic_endpoint<tcp> asio::ip::tcp::endpoint |
typedef asio::detail::socket_option::boolean< IPPROTO_TCP, TCP_NODELAY> asio::ip::tcp::no_delay |
Socket option for disabling the Nagle algorithm.
Implements the IPPROTO_TCP/TCP_NODELAY socket option.
asio::ip::tcp::socket socket(io_service); ... asio::ip::tcp::no_delay option(true); socket.set_option(option);
asio::ip::tcp::socket socket(io_service); ... asio::ip::tcp::no_delay option; socket.get_option(option); bool is_set = option.value();
typedef basic_resolver<tcp> asio::ip::tcp::resolver |
typedef basic_stream_socket<tcp> asio::ip::tcp::socket |
asio::ip::tcp::tcp | ( | int | family | ) | [inline, explicit, private] |
int asio::ip::tcp::family | ( | ) | const [inline] |
int asio::ip::tcp::protocol | ( | ) | const [inline] |
int asio::ip::tcp::type | ( | ) | const [inline] |
static tcp asio::ip::tcp::v4 | ( | ) | [inline, static] |
static tcp asio::ip::tcp::v6 | ( | ) | [inline, static] |
int asio::ip::tcp::family_ [private] |