/* -------------------------------------------------------------------------
- * 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$
* -------------------------------------------------------------------------
*/
#include "wx/msw/wrapwin.h"
-#ifndef TRUE
-#define TRUE 1
+#if defined(__CYGWIN__)
+ //CYGWIN gives annoying warning about runtime stuff if we don't do this
+# define USE_SYS_TYPES_FD_SET
+# include <sys/types.h>
#endif
-#ifndef FALSE
-#define FALSE 0
+#if defined(__WXWINCE__) || defined(__CYGWIN__)
+#include <winsock.h>
#endif
class GSocketGUIFunctionsTableConcrete: public GSocketGUIFunctionsTable
GAddress *GetPeer();
GSocketError SetServer();
GSocket *WaitConnection();
- int SetReusable();
+ bool SetReusable();
+ bool SetBroadcast();
+ bool DontDoBind();
GSocketError Connect(GSocketStream stream);
GSocketError SetNonOriented();
int Read(char *buffer, int size);
GSocketError m_error;
/* Attributes */
- int m_non_blocking;
- int m_server;
- int m_stream;
- int m_establishing;
- int m_reusable;
+ bool m_non_blocking;
+ bool m_server;
+ bool m_stream;
+ bool m_establishing;
+ bool m_reusable;
+ bool m_broadcast;
+ bool m_dobind;
struct timeval m_timeout;
/* Callbacks */