summaryrefslogtreecommitdiff
path: root/include/ftp/detail/network_algorithms.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ftp/detail/network_algorithms.hpp')
-rw-r--r--include/ftp/detail/network_algorithms.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/ftp/detail/network_algorithms.hpp b/include/ftp/detail/network_algorithms.hpp
new file mode 100644
index 0000000..159e6e2
--- /dev/null
+++ b/include/ftp/detail/network_algorithms.hpp
@@ -0,0 +1,31 @@
+#ifndef _NETWORKING_ALGORITHMS_HPP_
+#define _NETWORKING_ALGORITHMS_HPP_
+
+#include <boost/asio/ip/tcp.hpp>
+#include <ftp/error_code.hpp>
+#include <ftp/handshake_params.hpp>
+
+namespace ftp {
+
+namespace detail {
+
+using boost::asio::ip::tcp;
+
+inline void connect_interface(
+ tcp::socket& socket,
+ const tcp::resolver::results_type& endpoints,
+ const handshake_params& params,
+ error_code& ec
+);
+
+inline void handshake_interface(tcp::socket& socket, const handshake_params& params, error_code& ec);
+
+} // namespace detail
+
+} // namespace ftp
+
+#ifdef FTP_HEADER_ONLY
+#include <ftp/impl/networking_algorithms.cpp>
+#endif // FTP_HEADER_ONLY
+
+#endif // !_NETWORKING_ALGORITHMS_HPP_