diff options
Diffstat (limited to 'include/ftp/impl/networking_algorithms.cpp')
-rw-r--r-- | include/ftp/impl/networking_algorithms.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
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 <boost/asio/connect.hpp> +#include <ftp/detail/network_algorithms.hpp> +#include <ftp/handshake_params.hpp> + +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 |