aboutsummaryrefslogtreecommitdiff
path: root/include/sibs
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-14 04:17:54 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commit3e2c7e59672b282f8e089679ae7f05cfc03e405b (patch)
tree06f8395046e3cb784dc54f13a4945f18966dd68f /include/sibs
parentaac821b1d3f1148a084e097e94f383cff3dad467 (diff)
Add peer to listen callback
Diffstat (limited to 'include/sibs')
-rw-r--r--include/sibs/BootstrapConnection.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sibs/BootstrapConnection.hpp b/include/sibs/BootstrapConnection.hpp
index e77222d..dd90b7d 100644
--- a/include/sibs/BootstrapConnection.hpp
+++ b/include/sibs/BootstrapConnection.hpp
@@ -19,7 +19,8 @@ namespace sibs
PubsubKeyAlreadyListeningException(const std::string &errMsg) : std::runtime_error(errMsg) {}
};
- using BoostrapConnectionListenCallbackFunc = std::function<void(const void *data, const usize size)>;
+ // @peer is nullptr is data was sent by local user
+ using BoostrapConnectionListenCallbackFunc = std::function<void(const DirectConnectionPeer *peer, const void *data, const usize size)>;
class BootstrapConnection
{