X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7acf6a921e69c3382706c2cfc35e826d08004231..f196316400fd247a760b2ef77d5064b4e10e5471:/include/wx/msw/gsockmsw.h diff --git a/include/wx/msw/gsockmsw.h b/include/wx/msw/gsockmsw.h index 346a23c4c1..a32589d602 100644 --- a/include/wx/msw/gsockmsw.h +++ b/include/wx/msw/gsockmsw.h @@ -1,8 +1,10 @@ /* ------------------------------------------------------------------------- - * Project: GSocket (Generic Socket) for WX - * Name: gsockmsw.h - * Purpose: GSocket MSW header - * CVSID: $Id$ + * Project: GSocket (Generic Socket) for WX + * Name: gsockmsw.h + * Copyright: (c) Guilhem Lavaux + * Licence: wxWindows Licence + * Purpose: GSocket MSW header + * CVSID: $Id$ * ------------------------------------------------------------------------- */ @@ -23,7 +25,13 @@ #include "wx/msw/wrapwin.h" -#if defined(__WXWINCE__) +#if defined(__CYGWIN__) + //CYGWIN gives annoying warning about runtime stuff if we don't do this +# define USE_SYS_TYPES_FD_SET +# include +#endif + +#if defined(__WXWINCE__) || defined(__CYGWIN__) #include #endif @@ -55,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); @@ -93,6 +103,8 @@ public: bool m_stream; bool m_establishing; bool m_reusable; + bool m_broadcast; + bool m_dobind; struct timeval m_timeout; /* Callbacks */