projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
corrected DECLARE_DYNAMIC_CLASS use
[wxWidgets.git]
/
include
/
wx
/
msw
/
gsockmsw.h
diff --git
a/include/wx/msw/gsockmsw.h
b/include/wx/msw/gsockmsw.h
index 0fb678a3f06adcc4e4cb6e8b82c2201b6d76ef09..f7970f6ffdaaf3770c4ab5226dc94e10456b4d61 100644
(file)
--- 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"
#include "wx/msw/wrapwin.h"
-#ifdef __WXWINCE__
+#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
+
+#if defined(__WXWINCE__) || defined(__CYGWIN__)
#include <winsock.h>
#endif
#include <winsock.h>
#endif
@@
-55,6
+63,8
@@
public:
GSocketError SetServer();
GSocket *WaitConnection();
bool SetReusable();
GSocketError SetServer();
GSocket *WaitConnection();
bool SetReusable();
+ bool SetBroadcast();
+ bool DontDoBind();
GSocketError Connect(GSocketStream stream);
GSocketError SetNonOriented();
int Read(char *buffer, int size);
GSocketError Connect(GSocketStream stream);
GSocketError SetNonOriented();
int Read(char *buffer, int size);
@@
-70,6
+80,13
@@
public:
void *optval, int *optlen);
GSocketError SetSockOpt(int level, int optname,
const void *optval, int optlen);
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();
protected:
GSocketError Input_Timeout();
GSocketError Output_Timeout();
@@
-79,6
+96,8
@@
protected:
int Send_Stream(const char *buffer, int size);
int Send_Dgram(const char *buffer, int size);
bool m_ok;
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:
/* TODO: Make these protected */
public:
@@
-93,6
+112,8
@@
public:
bool m_stream;
bool m_establishing;
bool m_reusable;
bool m_stream;
bool m_establishing;
bool m_reusable;
+ bool m_broadcast;
+ bool m_dobind;
struct timeval m_timeout;
/* Callbacks */
struct timeval m_timeout;
/* Callbacks */