X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/99d800190a04a2deaf769017a5fae04a4ae50378..15f7c30516facfb272fc116aec4d3f9c3a9de085:/include/wx/msw/gsockmsw.h?ds=sidebyside diff --git a/include/wx/msw/gsockmsw.h b/include/wx/msw/gsockmsw.h index 859ed60513..f7970f6ffd 100644 --- a/include/wx/msw/gsockmsw.h +++ b/include/wx/msw/gsockmsw.h @@ -63,6 +63,8 @@ public: GSocketError SetServer(); GSocket *WaitConnection(); bool SetReusable(); + bool SetBroadcast(); + bool DontDoBind(); GSocketError Connect(GSocketStream stream); GSocketError SetNonOriented(); int Read(char *buffer, int size); @@ -78,6 +80,13 @@ public: void *optval, int *optlen); GSocketError SetSockOpt(int level, int optname, const void *optval, int optlen); + + void SetInitialSocketBuffers(int recv, int send) + { + m_initialRecvBufferSize = recv; + m_initialSendBufferSize = send; + } + protected: GSocketError Input_Timeout(); GSocketError Output_Timeout(); @@ -87,6 +96,8 @@ protected: int Send_Stream(const char *buffer, int size); int Send_Dgram(const char *buffer, int size); bool m_ok; + int m_initialRecvBufferSize; + int m_initialSendBufferSize; /* TODO: Make these protected */ public: @@ -101,6 +112,8 @@ public: bool m_stream; bool m_establishing; bool m_reusable; + bool m_broadcast; + bool m_dobind; struct timeval m_timeout; /* Callbacks */