summaryrefslogtreecommitdiff
path: root/include/ftp/impl/networking_algorithms.cpp
diff options
context:
space:
mode:
authorDaniil Rozanov <daniilrozzanov@gmail.com>2023-07-05 03:11:34 +0300
committerDaniil Rozanov <daniilrozzanov@gmail.com>2023-07-05 03:11:34 +0300
commitd3f11e3b7b86eda4733ece84294d9dc8da1d23bc (patch)
tree860fea9c8e63d0f62e28a513c0e50d2d7171a8d4 /include/ftp/impl/networking_algorithms.cpp
parentf51c3ac3f1c0cac99eb8cfe91b280d84f128cdc9 (diff)
Added declaration of connection class with connect and execute members. Created detail and impl folder. Created one example's fileHEADmain
Diffstat (limited to 'include/ftp/impl/networking_algorithms.cpp')
-rw-r--r--include/ftp/impl/networking_algorithms.cpp34
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