aboutsummaryrefslogtreecommitdiff
path: root/include/sibs
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-06-08 02:13:30 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-06-08 02:13:31 +0200
commit590d00257009d947f29dda6040f95be4c10d84f6 (patch)
tree2dd55908093cb3f35a11b2a09cefcedd6372aa53 /include/sibs
parent214150db03411d90d6aee4044386d9f671304f3e (diff)
Remove peer socket when disconnected
Diffstat (limited to 'include/sibs')
-rw-r--r--include/sibs/DirectConnection.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sibs/DirectConnection.hpp b/include/sibs/DirectConnection.hpp
index 0e8b961..45ba5d9 100644
--- a/include/sibs/DirectConnection.hpp
+++ b/include/sibs/DirectConnection.hpp
@@ -57,7 +57,8 @@ namespace sibs
private:
std::shared_ptr<DirectConnectionPeer> connect(const Ipv4 &address, bool rendezvous, bool reuseAddr, PubSubReceiveDataCallback receiveDataCallbackFunc);
void receiveData();
- bool receiveDataFromPeer(const int socket, char *output);
+ int receiveDataFromPeer(const int socket, char *output);
+ bool removePeer(int peerSocket);
private:
u16 port;
int eid;