added SetInitialSocketBuffers() to allow changing the send/receive buffer sizes (patch 1829576)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-11-17 15:21:26 +00:00
parent 795b0f1444
commit 8c029a5b02
6 changed files with 50 additions and 2 deletions

View File

@@ -263,8 +263,21 @@ public:
bool WaitOnConnect(long seconds = -1, long milliseconds = 0);
// Sets initial socket buffer sizes using the SO_SNDBUF and SO_RCVBUF options
// before calling connect (either one can be -1 to leave it unchanged)
void SetInitialSocketBuffers(int recv, int send)
{
m_initialRecvBufferSize = recv;
m_initialSendBufferSize = send;
}
private:
virtual bool DoConnect(wxSockAddress& addr, wxSockAddress* local, bool wait = true);
virtual bool
DoConnect(wxSockAddress& addr, wxSockAddress* local, bool wait = true);
// buffer sizes, -1 if unset and defaults should be used
int m_initialRecvBufferSize;
int m_initialSendBufferSize;
DECLARE_NO_COPY_CLASS(wxSocketClient)
};