From d3f11e3b7b86eda4733ece84294d9dc8da1d23bc Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Wed, 5 Jul 2023 03:11:34 +0300 Subject: Added declaration of connection class with connect and execute members. Created detail and impl folder. Created one example's file --- include/ftp/detail/network_algorithms.hpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/ftp/detail/network_algorithms.hpp (limited to 'include/ftp/detail') 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 +#include +#include + +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 +#endif // FTP_HEADER_ONLY + +#endif // !_NETWORKING_ALGORITHMS_HPP_ -- cgit v1.2.3