#include "gsocket.h"
#endif
-#include "wx/private/gsocketiohandler.h"
-
class GSocketGUIFunctionsTableConcrete : public GSocketGUIFunctionsTable
{
public:
GSocketError GetSockOpt(int level, int optname, void *optval, int *optlen);
GSocketError SetSockOpt(int level, int optname,
const void *optval, int optlen);
- // enable or disable notifications
- void Notify(bool enable);
virtual void Detected_Read();
virtual void Detected_Write();
+ void SetInitialSocketBuffers(int recv, int send)
+ {
+ m_initialRecvBufferSize = recv;
+ m_initialSendBufferSize = send;
+ }
+
protected:
- //enable or disable event callback using gsocket gui callback table
- void EnableEvents(bool flag = true);
- void DisableEvents() { EnableEvents(false); }
void Enable(GSocketEvent event);
void Disable(GSocketEvent event);
GSocketError Input_Timeout();
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;
public:
/* DFE: We can't protect these data member until the GUI code is updated */
/* protected: */
bool m_dobind;
unsigned long m_timeout;
- // true if socket should fire events (use GUI GSocketFunctionsTable)
- bool m_use_events;
-
/* Callbacks */
GSocketEventFlags m_detected;
GSocketCallback m_cbacks[GSOCK_MAX_EVENT];