From e22adde24fb3dd1147948afb99519110c359063e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 13 Oct 2018 19:58:17 +0200 Subject: Test --- include/sibs/DirectConnection.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/sibs') diff --git a/include/sibs/DirectConnection.hpp b/include/sibs/DirectConnection.hpp index 0ac5724..650486e 100644 --- a/include/sibs/DirectConnection.hpp +++ b/include/sibs/DirectConnection.hpp @@ -51,6 +51,9 @@ namespace sibs void connectServer(const Ipv4 &address, PubSubConnectCallback connectCallbackFunc, PubSubReceiveDataCallback receiveDataCallbackFunc); // Throws ConnectionException on error void connect(const Ipv4 &address, PubSubConnectCallback connectCallbackFunc, PubSubReceiveDataCallback receiveDataCallbackFunc); + + void connect(const Ipv4 &address, const std::shared_ptr serverPeer, PubSubConnectCallback connectCallbackFunc, PubSubReceiveDataCallback receiveDataCallbackFunc); + void send(const std::shared_ptr peer, std::shared_ptr> data, PubSubSendDataCallback sendDataCallbackFunc = nullptr); protected: int createSocket(const Ipv4 &addressToBind, bool rendezvous, bool reuseAddr, bool bind = true); -- cgit v1.2.3