11 #ifndef ASIO_IP_TCP_HPP 12 #define ASIO_IP_TCP_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 90 #if !defined(ASIO_NO_IOSTREAM) 93 #endif // !defined(ASIO_NO_IOSTREAM) 121 #if defined(GENERATING_DOCUMENTATION) 122 typedef implementation_defined
no_delay;
131 return p1.family_ == p2.family_;
137 return p1.family_ != p2.family_;
142 explicit tcp(
int protocol_family)
143 : family_(protocol_family)
155 #endif // ASIO_IP_TCP_HPP basic_stream_socket< tcp > socket
The TCP socket type.
Iostream interface for a socket.
static tcp v6()
Construct to represent the IPv6 TCP protocol.
Describes an endpoint for a version-independent IP socket.
Encapsulates the flags needed for TCP.
Provides stream-oriented socket functionality.
static tcp v4()
Construct to represent the IPv4 TCP protocol.
basic_resolver< tcp > resolver
The TCP resolver type.
basic_socket_iostream< tcp > iostream
The TCP iostream type.
asio::detail::socket_option::boolean< ASIO_OS_DEF(IPPROTO_TCP), ASIO_OS_DEF(TCP_NODELAY)> no_delay
Socket option for disabling the Nagle algorithm.
Provides the ability to accept new connections.
friend bool operator==(const tcp &p1, const tcp &p2)
Compare two protocols for equality.
basic_endpoint< tcp > endpoint
The type of a TCP endpoint.
int protocol() const
Obtain an identifier for the protocol.
basic_socket_acceptor< tcp > acceptor
The TCP acceptor type.
friend bool operator!=(const tcp &p1, const tcp &p2)
Compare two protocols for inequality.
int type() const
Obtain an identifier for the type of the protocol.
Provides endpoint resolution functionality.
int family() const
Obtain an identifier for the protocol family.