diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-06-09 16:52:38 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-06-09 16:54:11 +0200 |
commit | 6675ebd2964af48410a4843784b092026101de87 (patch) | |
tree | f2d583201146a3f382765f681554757ec27402d5 /include | |
parent | f5cfb3d6ef967a3c5547d7eb417a9a028c520d34 (diff) |
Change connection type to tcp, perhaps udt requires that
Diffstat (limited to 'include')
-rw-r--r-- | include/sibs/DirectConnection.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sibs/DirectConnection.hpp b/include/sibs/DirectConnection.hpp index b7c467e..134eade 100644 --- a/include/sibs/DirectConnection.hpp +++ b/include/sibs/DirectConnection.hpp @@ -53,7 +53,7 @@ namespace sibs void connect(const Ipv4 &address, PubSubConnectCallback connectCallbackFunc, PubSubReceiveDataCallback receiveDataCallbackFunc); void send(const std::shared_ptr<DirectConnectionPeer> &peer, std::shared_ptr<std::vector<u8>> data, PubSubSendDataCallback sendDataCallbackFunc = nullptr); protected: - int createSocket(const Ipv4 &addressToBind, bool rendezvous, bool reuseAddr); + int createSocket(const Ipv4 &addressToBind, bool rendezvous, bool reuseAddr, bool bind = true); private: void connect(const Ipv4 &address, bool rendezvous, bool reuseAddr, PubSubConnectCallback connectCallbackFunc, PubSubReceiveDataCallback receiveDataCallbackFunc); void receiveData(); |