wxSocketStream *stream = new wxSocketStream(*client);
wxDataInputStream data_is(*stream);
wxDataOutputStream data_os(*stream);
wxSocketStream *stream = new wxSocketStream(*client);
wxDataInputStream data_is(*stream);
wxDataOutputStream data_os(*stream);
-bool wxTCPConnection::Poke (const wxString& item, char *data, int size, wxIPCFormat format)
+bool wxTCPConnection::Poke (const wxString& item, wxChar *data, int size, wxIPCFormat format)
// Calls that SERVER can make
bool wxTCPConnection::Advise (const wxString& item,
// Calls that SERVER can make
bool wxTCPConnection::Advise (const wxString& item,
char *cdata)
{
int msg = 0;
wxTCPConnection *connection = (wxTCPConnection *)cdata;
wxDataInputStream *codeci;
wxDataOutputStream *codeco;
char *cdata)
{
int msg = 0;
wxTCPConnection *connection = (wxTCPConnection *)cdata;
wxDataInputStream *codeci;
wxDataOutputStream *codeco;
wxString topic_name = connection->m_topic;
wxString item;
// The socket handler signals us that we lost the connection: destroy all.
wxString topic_name = connection->m_topic;
wxString item;
// The socket handler signals us that we lost the connection: destroy all.
// Receive message number.
codeci = connection->m_codeci;
codeco = connection->m_codeco;
// Receive message number.
codeci = connection->m_codeci;
codeco = connection->m_codeco;
connection->OnExecute (topic_name, data, size, format);
connection->OnExecute (topic_name, data, size, format);
connection->OnAdvise (topic_name, item, data, size, format);
connection->OnAdvise (topic_name, item, data, size, format);
connection->OnPoke (topic_name, item, data, size, format);
connection->OnPoke (topic_name, item, data, size, format);
{
wxTCPServer *ipcserv = (wxTCPServer *)cdata;
wxSocketStream *stream;
wxDataInputStream *codeci;
wxDataOutputStream *codeco;
{
wxTCPServer *ipcserv = (wxTCPServer *)cdata;
wxSocketStream *stream;
wxDataInputStream *codeci;
wxDataOutputStream *codeco;
return;
/* Accept the connection, getting a new socket */
wxSocketBase *sock = server.Accept();
sock->Notify(FALSE);
return;
/* Accept the connection, getting a new socket */
wxSocketBase *sock = server.Accept();
sock->Notify(FALSE);