#pragma hdrstop
#endif
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxTCPServer, wxServerBase)
IMPLEMENT_DYNAMIC_CLASS(wxTCPClient, wxClientBase)
IMPLEMENT_DYNAMIC_CLASS(wxTCPConnection, wxConnectionBase)
-#endif
// It seems to be already defined somewhere in the Xt includes.
#ifndef __XT__
// wxTCPClient
// ---------------------------------------------------------------------------
-wxTCPClient::wxTCPClient (void)
+wxTCPClient::wxTCPClient ()
: wxClientBase()
{
}
-wxTCPClient::~wxTCPClient (void)
+wxTCPClient::~wxTCPClient ()
{
}
delete client;
return NULL;
}
- return NULL;
}
wxConnectionBase *wxTCPClient::OnMakeConnection()
// wxTCPServer
// ---------------------------------------------------------------------------
-wxTCPServer::wxTCPServer (void)
+wxTCPServer::wxTCPServer ()
: wxServerBase()
{
}
return TRUE;
}
-wxTCPServer::~wxTCPServer(void)
+wxTCPServer::~wxTCPServer()
{
}
// wxTCPConnection
// ---------------------------------------------------------------------------
-wxTCPConnection::wxTCPConnection (void)
+wxTCPConnection::wxTCPConnection ()
: wxConnectionBase(),
m_sock(NULL), m_sockstrm(NULL), m_codeci(NULL), m_codeco(NULL)
{
}
-wxTCPConnection::wxTCPConnection(char *buffer, int size)
+wxTCPConnection::wxTCPConnection(char * WXUNUSED(buffer), int WXUNUSED(size))
{
}
-wxTCPConnection::~wxTCPConnection (void)
+wxTCPConnection::~wxTCPConnection ()
{
wxDELETE(m_sock);
wxDELETE(m_codeci);
}
// Calls that CLIENT can make.
-bool wxTCPConnection::Disconnect (void)
+bool wxTCPConnection::Disconnect ()
{
// Send the the disconnect message to the peer.
m_codeco->Write8(IPC_DISCONNECT);
return TRUE;
}
-bool wxTCPConnection::Execute (wxChar *data, int size, wxIPCFormat format)
+bool wxTCPConnection::Execute (const wxChar *data, int size, wxIPCFormat format)
{
if (!m_sock->IsConnected())
return FALSE;