Home | History | Annotate | Download | only in asio

Lines Matching refs:protocol

37 template <typename Protocol, typename SocketService>
50 /// The protocol type.
51 typedef Protocol protocol_type;
54 typedef typename Protocol::endpoint endpoint_type;
57 typedef basic_socket<Protocol, SocketService> lowest_layer_type;
78 * @param protocol An object specifying protocol parameters to be used.
83 const protocol_type& protocol)
87 this->get_service().open(this->get_implementation(), protocol, ec);
95 * specified endpoint on the local machine. The protocol used is the protocol
111 const protocol_type protocol = endpoint.protocol();
112 this->get_service().open(this->get_implementation(), protocol, ec);
125 * @param protocol An object specifying protocol parameters to be used.
132 const protocol_type& protocol, const native_handle_type& native_socket)
137 protocol, native_socket, ec);
178 /// Move-construct a basic_socket from a socket of another protocol type.
190 typename enable_if<is_convertible<Protocol1, Protocol>::value>::type* = 0)
197 /// Move-assign a basic_socket from a socket of another protocol type.
208 typename enable_if<is_convertible<Protocol1, Protocol>::value,
247 /// Open the socket using the specified protocol.
249 * This function opens the socket so that it will use the specified protocol.
251 * @param protocol An object specifying protocol parameters to be used.
261 void open(const protocol_type& protocol = protocol_type())
264 this->get_service().open(this->get_implementation(), protocol, ec);
268 /// Open the socket using the specified protocol.
270 * This function opens the socket so that it will use the specified protocol.
272 * @param protocol An object specifying which protocol is to be used.
287 asio::error_code open(const protocol_type& protocol,
290 return this->get_service().open(this->get_implementation(), protocol, ec);
297 * @param protocol An object specifying which protocol is to be used.
303 void assign(const protocol_type& protocol,
308 protocol, native_socket, ec);
316 * @param protocol An object specifying which protocol is to be used.
322 asio::error_code assign(const protocol_type& protocol,
326 protocol, native_socket, ec);
635 peer_endpoint.protocol(), ec);
676 peer_endpoint.protocol(), ec))
740 const protocol_type protocol = peer_endpoint.protocol();
741 if (this->get_service().open(this->get_implementation(), protocol, ec))