diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-06-09 16:52:38 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 22:56:48 +0200 |
commit | 2b347b81b1b064b3450d4ac424923d0fb349c622 (patch) | |
tree | c757e5f90da1eaf67989cc3ca2431f4299a12a0f /include | |
parent | b227a922a4f6e65a1b517b46f1eee66ec384e7e0 (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(); |