Removing warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,8 +42,8 @@ enum wxIPCFormat
|
|||||||
wxIPC_PRIVATE = 20
|
wxIPC_PRIVATE = 20
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLEXPORT wxDDEServerBase;
|
class WXDLLEXPORT wxServerBase;
|
||||||
class WXDLLEXPORT wxDDEClientBase;
|
class WXDLLEXPORT wxClientBase;
|
||||||
|
|
||||||
class WXDLLEXPORT wxConnectionBase: public wxObject
|
class WXDLLEXPORT wxConnectionBase: public wxObject
|
||||||
{
|
{
|
||||||
|
@@ -11,11 +11,12 @@
|
|||||||
// (c) 2000 Guillermo Rodriguez <guille@iies.es>
|
// (c) 2000 Guillermo Rodriguez <guille@iies.es>
|
||||||
// Licence: wxWindows license
|
// Licence: wxWindows license
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef _WX_SCKIPC_H
|
#ifndef _WX_SCKIPC_H
|
||||||
#define _WX_SCKIPC_H
|
#define _WX_SCKIPC_H
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface
|
#pragma interface "sckipc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
@@ -49,27 +50,13 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class wxTCPServer;
|
class WXDLLEXPORT wxTCPServer;
|
||||||
class wxTCPClient;
|
class WXDLLEXPORT wxTCPClient;
|
||||||
class wxTCPConnection: public wxConnectionBase
|
|
||||||
|
class WXDLLEXPORT wxTCPConnection: public wxConnectionBase
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxTCPConnection)
|
DECLARE_DYNAMIC_CLASS(wxTCPConnection)
|
||||||
|
|
||||||
protected:
|
|
||||||
wxSocketBase *m_sock;
|
|
||||||
wxSocketStream *m_sockstrm;
|
|
||||||
wxDataInputStream *m_codeci;
|
|
||||||
wxDataOutputStream *m_codeco;
|
|
||||||
wxString m_topic;
|
|
||||||
|
|
||||||
friend class wxTCPServer;
|
|
||||||
friend class wxTCPClient;
|
|
||||||
friend void Client_OnRequest(wxSocketBase&,
|
|
||||||
wxSocketNotify, char *);
|
|
||||||
friend void Server_OnRequest(wxSocketServer&,
|
|
||||||
wxSocketNotify, char *);
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
wxTCPConnection(char *buffer, int size);
|
wxTCPConnection(char *buffer, int size);
|
||||||
wxTCPConnection();
|
wxTCPConnection();
|
||||||
virtual ~wxTCPConnection();
|
virtual ~wxTCPConnection();
|
||||||
@@ -89,14 +76,20 @@ public:
|
|||||||
virtual bool Disconnect(void);
|
virtual bool Disconnect(void);
|
||||||
|
|
||||||
// Callbacks to SERVER - override at will
|
// Callbacks to SERVER - override at will
|
||||||
virtual bool OnExecute(const wxString& topic, char *data, int size, wxIPCFormat format) { return FALSE; };
|
virtual bool OnExecute(const wxString& topic, char *data, int size, wxIPCFormat format)
|
||||||
virtual char *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format) { return NULL; };
|
{ return wxConnectionBase::OnExecute(topic, data, size, format); };
|
||||||
virtual bool OnPoke(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format) { return FALSE; };
|
virtual char *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format)
|
||||||
virtual bool OnStartAdvise(const wxString& topic, const wxString& item) { return FALSE; };
|
{ return wxConnectionBase::OnRequest(topic, item, size, format); };
|
||||||
virtual bool OnStopAdvise(const wxString& topic, const wxString& item) { return FALSE; };
|
virtual bool OnPoke(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format)
|
||||||
|
{ return wxConnectionBase::OnPoke(topic, item, data, size, format); };
|
||||||
|
virtual bool OnStartAdvise(const wxString& topic, const wxString& item)
|
||||||
|
{ return wxConnectionBase::OnStartAdvise(topic, item); };
|
||||||
|
virtual bool OnStopAdvise(const wxString& topic, const wxString& item)
|
||||||
|
{ return wxConnectionBase::OnStopAdvise(topic, item); };
|
||||||
|
|
||||||
// Callbacks to CLIENT - override at will
|
// Callbacks to CLIENT - override at will
|
||||||
virtual bool OnAdvise(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format) { return FALSE; };
|
virtual bool OnAdvise(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format)
|
||||||
|
{ return wxConnectionBase::OnAdvise(topic, item, data, size, format); };
|
||||||
|
|
||||||
// Callbacks to BOTH
|
// Callbacks to BOTH
|
||||||
|
|
||||||
@@ -106,6 +99,20 @@ public:
|
|||||||
// To enable the compressor
|
// To enable the compressor
|
||||||
void Compress(bool on);
|
void Compress(bool on);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
wxSocketBase *m_sock;
|
||||||
|
wxSocketStream *m_sockstrm;
|
||||||
|
wxDataInputStream *m_codeci;
|
||||||
|
wxDataOutputStream *m_codeco;
|
||||||
|
wxString m_topic;
|
||||||
|
|
||||||
|
friend class wxTCPServer;
|
||||||
|
friend class wxTCPClient;
|
||||||
|
friend void Client_OnRequest(wxSocketBase&,
|
||||||
|
wxSocketNotify, char *);
|
||||||
|
friend void Server_OnRequest(wxSocketServer&,
|
||||||
|
wxSocketNotify, char *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -23,11 +23,12 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_SOCKETS
|
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/defs.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_SOCKETS
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@@ -41,7 +42,7 @@
|
|||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxTCPServer, wxServerBase)
|
IMPLEMENT_DYNAMIC_CLASS(wxTCPServer, wxServerBase)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxTCPClient, wxClientBase)
|
IMPLEMENT_DYNAMIC_CLASS(wxTCPClient, wxClientBase)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxTCPConnection, wxConnectionBase)
|
IMPLEMENT_CLASS(wxTCPConnection, wxConnectionBase)
|
||||||
|
|
||||||
// It seems to be already defined somewhere in the Xt includes.
|
// It seems to be already defined somewhere in the Xt includes.
|
||||||
#ifndef __XT__
|
#ifndef __XT__
|
||||||
|
Reference in New Issue
Block a user