Home | History | Annotate | Download | only in ip

Lines Matching defs:tcp

2 // ip/tcp.hpp
31 /// Encapsulates the flags needed for TCP.
33 * The asio::ip::tcp class contains flags necessary for TCP sockets.
42 class tcp
45 /// The type of a TCP endpoint.
46 typedef basic_endpoint<tcp> endpoint;
48 /// Construct to represent the IPv4 TCP protocol.
49 static tcp v4()
51 return tcp(ASIO_OS_DEF(AF_INET));
54 /// Construct to represent the IPv6 TCP protocol.
55 static tcp v6()
57 return tcp(ASIO_OS_DEF(AF_INET6));
78 /// The TCP socket type.
79 typedef basic_stream_socket<tcp> socket;
81 /// The TCP acceptor type.
82 typedef basic_socket_acceptor<tcp> acceptor;
84 /// The TCP resolver type.
85 typedef basic_resolver<tcp> resolver;
95 * asio::ip::tcp::socket socket(io_service);
97 * asio::ip::tcp::no_delay option(true);
104 * asio::ip::tcp::socket socket(io_service);
106 * asio::ip::tcp::no_delay option;
118 friend bool operator==(const tcp& p1, const tcp& p2)
124 friend bool operator!=(const tcp& p1, const tcp& p2)
131 explicit tcp(int protocol_family)