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/impl/networking_algorithms.cpp | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 include/ftp/impl/networking_algorithms.cpp (limited to 'include/ftp/impl/networking_algorithms.cpp') diff --git a/include/ftp/impl/networking_algorithms.cpp b/include/ftp/impl/networking_algorithms.cpp new file mode 100644 index 0000000..9920cfb --- /dev/null +++ b/include/ftp/impl/networking_algorithms.cpp @@ -0,0 +1,34 @@ +#ifndef _NETWORKING_ALGORITHMS_CPP_ +#define _NETWORKING_ALGORITHMS_CPP_ + +#pragma once + +#include +#include +#include + +namespace asio = boost::asio; + +inline void ftp::detail::connect_interface( + tcp::socket& socket, + const tcp::resolver::results_type& endpoints, + const handshake_params& params, + error_code& ec +) +{ + asio::connect(socket, endpoints, ec); + if (ec) + { + return; + } +} + +inline void ftp::detail::handshake_interface( + tcp::socket& socket, + const handshake_params& params, + error_code& ec +) +{ +} + +#endif -- cgit v1.2.3