#pragma hdrstop
#endif
+#if wxUSE_SOCKETS
+
#ifndef WX_PRECOMP
#endif
{
}
+wxTCPConnection::wxTCPConnection(char *buffer, int size)
+{
+}
+
wxTCPConnection::~wxTCPConnection (void)
{
wxDELETE(m_sock);
return TRUE;
}
-bool wxTCPConnection::Execute (char *data, int size, wxDataFormat format)
+bool wxTCPConnection::Execute (char *data, int size, wxIPCFormat format)
{
if (!m_sock->IsConnected())
return FALSE;
return TRUE;
}
-char *wxTCPConnection::Request (const wxString& item, int *size, wxDataFormat format)
+char *wxTCPConnection::Request (const wxString& item, int *size, wxIPCFormat format)
{
if (!m_sock->IsConnected())
return NULL;
}
}
-bool wxTCPConnection::Poke (const wxString& item, char *data, int size, wxDataFormat format)
+bool wxTCPConnection::Poke (const wxString& item, char *data, int size, wxIPCFormat format)
{
if (!m_sock->IsConnected())
return FALSE;
// Calls that SERVER can make
bool wxTCPConnection::Advise (const wxString& item,
- char *data, int size, wxDataFormat format)
+ char *data, int size, wxIPCFormat format)
{
if (!m_sock->IsConnected())
return FALSE;
case IPC_EXECUTE: {
char *data;
size_t size;
- wxDataFormat format;
+ wxIPCFormat format;
- format = (wxDataFormat)codeci->Read8();
+ format = (wxIPCFormat)codeci->Read8();
size = codeci->Read32();
data = new char[size];
codeci->Read(data, size);
case IPC_ADVISE: {
char *data;
size_t size;
- wxDataFormat format;
+ wxIPCFormat format;
item = codeci->ReadString();
- format = (wxDataFormat)codeci->Read8();
+ format = (wxIPCFormat)codeci->Read8();
size = codeci->Read32();
data = new char[size];
codeci->Read(data, size);
break;
}
case IPC_POKE: {
- wxDataFormat format;
+ wxIPCFormat format;
size_t size;
char *data;
item = codeci->ReadString();
- format = (wxDataFormat)codeci->Read8();
+ format = (wxIPCFormat)codeci->Read8();
size = codeci->Read32();
data = new char[size];
codeci->Read(data, size);
break;
}
case IPC_REQUEST: {
- wxDataFormat format;
+ wxIPCFormat format;
item = codeci->ReadString();
- format = (wxDataFormat)codeci->Read8();
+ format = (wxIPCFormat)codeci->Read8();
int user_size = -1;
char *user_data = connection->OnRequest (topic_name, item, &user_size, format);
}
}
}
+
+#endif
+ // wxUSE_SOCKETS