From 7b61bed0e0624fb33409c29dda5462029b42393b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 9 Jun 2018 21:32:20 +0200 Subject: Fix crash in send method, add debug --- include/sibs/DirectConnection.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sibs') diff --git a/include/sibs/DirectConnection.hpp b/include/sibs/DirectConnection.hpp index 900d419..0ac5724 100644 --- a/include/sibs/DirectConnection.hpp +++ b/include/sibs/DirectConnection.hpp @@ -51,7 +51,7 @@ 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 send(const std::shared_ptr &peer, std::shared_ptr> data, PubSubSendDataCallback sendDataCallbackFunc = nullptr); + 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); private: -- cgit v1.2.3