X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/985acf8734d61067c66b4812a9dd9da90d725851..b48eedfc694c2050b5d4ad8e7760534b0b4edae6:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index e90a3b7cb5..825901734d 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -37,9 +37,9 @@ #endif #include "wx/apptrait.h" - #include "wx/sckaddr.h" #include "wx/stopwatch.h" +#include "wx/thread.h" // DLL options compatibility check: #include "wx/build.h" @@ -1303,6 +1303,10 @@ bool wxSocketClient::DoConnect(wxSockAddress& addr_man, wxSockAddress* local, bo m_socket->SetLocal(la); } +#if defined(__WXMSW__) || defined(__WXGTK__) + m_socket->SetInitialSocketBuffers(m_initialRecvBufferSize, m_initialSendBufferSize); +#endif + m_socket->SetPeer(addr_man.GetAddress()); err = m_socket->Connect(GSOCK_STREAMED);