diff options
Diffstat (limited to 'libcmix-network')
| -rw-r--r-- | libcmix-network/client.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libcmix-network/client.hpp b/libcmix-network/client.hpp index cb81418..e1c2e14 100644 --- a/libcmix-network/client.hpp +++ b/libcmix-network/client.hpp @@ -50,8 +50,18 @@ public: */ Client(boost::asio::ip::tcp::socket&& socket); + /*! + * \brief async_connect Asynchronously connects to next_host:port and calls on_connect + * \param next_host The host to connect to + * \param next_port The port to connect to + * \param on_connect The callback to call on a succes. + */ void async_connect(std::string next_host, std::string next_port, std::function<void()> on_connect); + /*! + * \brief send sends the string prefixed with it's length over the socket. + * \param message The string to be sent. + */ void send(std::string message); /*! @@ -60,6 +70,9 @@ public: */ void receive(MessageHandler message_handler); + /*! + * \brief close Closes the underlying socket. + */ void close(); /*! |
