Realistic 3D camera system
3D camera system components
connect.hpp
Go to the documentation of this file.
1 //
2 // connect.hpp
3 // ~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_CONNECT_HPP
12 #define ASIO_CONNECT_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 #include "asio/async_result.hpp"
20 #include "asio/basic_socket.hpp"
21 #include "asio/error.hpp"
22 
24 
25 namespace asio {
26 
33 
35 
63 template <typename Protocol, typename SocketService, typename Iterator>
64 Iterator connect(basic_socket<Protocol, SocketService>& s, Iterator begin);
65 
67 
100 template <typename Protocol, typename SocketService, typename Iterator>
101 Iterator connect(basic_socket<Protocol, SocketService>& s,
102  Iterator begin, asio::error_code& ec);
103 
105 
132 template <typename Protocol, typename SocketService, typename Iterator>
133 Iterator connect(basic_socket<Protocol, SocketService>& s,
134  Iterator begin, Iterator end);
135 
137 
169 template <typename Protocol, typename SocketService, typename Iterator>
170 Iterator connect(basic_socket<Protocol, SocketService>& s,
171  Iterator begin, Iterator end, asio::error_code& ec);
172 
174 
232 template <typename Protocol, typename SocketService,
233  typename Iterator, typename ConnectCondition>
234 Iterator connect(basic_socket<Protocol, SocketService>& s,
235  Iterator begin, ConnectCondition connect_condition);
236 
238 
304 template <typename Protocol, typename SocketService,
305  typename Iterator, typename ConnectCondition>
306 Iterator connect(basic_socket<Protocol, SocketService>& s, Iterator begin,
307  ConnectCondition connect_condition, asio::error_code& ec);
308 
310 
366 template <typename Protocol, typename SocketService,
367  typename Iterator, typename ConnectCondition>
368 Iterator connect(basic_socket<Protocol, SocketService>& s, Iterator begin,
369  Iterator end, ConnectCondition connect_condition);
370 
372 
436 template <typename Protocol, typename SocketService,
437  typename Iterator, typename ConnectCondition>
438 Iterator connect(basic_socket<Protocol, SocketService>& s,
439  Iterator begin, Iterator end, ConnectCondition connect_condition,
440  asio::error_code& ec);
441 
451 
454 
517 template <typename Protocol, typename SocketService,
518  typename Iterator, typename ComposedConnectHandler>
519 ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler,
520  void (asio::error_code, Iterator))
521 async_connect(basic_socket<Protocol, SocketService>& s,
522  Iterator begin, ASIO_MOVE_ARG(ComposedConnectHandler) handler);
523 
526 
588 template <typename Protocol, typename SocketService,
589  typename Iterator, typename ComposedConnectHandler>
590 ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler,
591  void (asio::error_code, Iterator))
592 async_connect(basic_socket<Protocol, SocketService>& s,
593  Iterator begin, Iterator end,
594  ASIO_MOVE_ARG(ComposedConnectHandler) handler);
595 
598 
698 template <typename Protocol, typename SocketService, typename Iterator,
699  typename ConnectCondition, typename ComposedConnectHandler>
700 ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler,
701  void (asio::error_code, Iterator))
702 async_connect(basic_socket<Protocol, SocketService>& s, Iterator begin,
703  ConnectCondition connect_condition,
704  ASIO_MOVE_ARG(ComposedConnectHandler) handler);
705 
708 
807 template <typename Protocol, typename SocketService, typename Iterator,
808  typename ConnectCondition, typename ComposedConnectHandler>
809 ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler,
810  void (asio::error_code, Iterator))
811 async_connect(basic_socket<Protocol, SocketService>& s,
812  Iterator begin, Iterator end, ConnectCondition connect_condition,
813  ASIO_MOVE_ARG(ComposedConnectHandler) handler);
814 
817 } // namespace asio
818 
819 #include "asio/detail/pop_options.hpp"
820 
821 #include "asio/impl/connect.hpp"
822 
823 #endif
SocketService & s
Definition: connect.hpp:521
SocketService Iterator begin
Definition: connect.hpp:521
Iterator connect(basic_socket< Protocol, SocketService > &s, Iterator begin)
Establishes a socket connection by trying each endpoint in a sequence.
Definition: connect.hpp:44
ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler, void(asio::error_code, Iterator)) async_connect(basic_socket< Protocol
SocketService Iterator ConnectCondition connect_condition
Definition: connect.hpp:702
asio::basic_streambuf< Allocator > CompletionCondition ASIO_MOVE_ARG(ReadHandler) handler)
Definition: read.hpp:704
Class to represent an error code value.
Definition: error_code.hpp:80
Provides socket functionality.
SocketService Iterator Iterator end
Definition: connect.hpp:592