2002-04-15 14:24:46 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/ipc.h
|
|
|
|
// Purpose: wrapper around different wxIPC classes implementations
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 15.04.02
|
|
|
|
// Copyright: (c) 2002 Vadim Zeitlin
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2002-04-15 14:24:46 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-09-25 16:49:40 -04:00
|
|
|
#ifndef _WX_IPC_H_
|
|
|
|
#define _WX_IPC_H_
|
|
|
|
|
2002-04-15 14:24:46 -04:00
|
|
|
// Set wxUSE_DDE_FOR_IPC to 1 to use DDE for IPC under Windows. If it is set to
|
|
|
|
// 0, or if the platform is not Windows, use TCP/IP for IPC implementation
|
|
|
|
|
|
|
|
#if !defined(wxUSE_DDE_FOR_IPC)
|
2012-03-03 19:29:31 -05:00
|
|
|
#ifdef __WINDOWS__
|
2002-04-15 14:24:46 -04:00
|
|
|
#define wxUSE_DDE_FOR_IPC 1
|
|
|
|
#else
|
|
|
|
#define wxUSE_DDE_FOR_IPC 0
|
|
|
|
#endif
|
|
|
|
#endif // !defined(wxUSE_DDE_FOR_IPC)
|
|
|
|
|
|
|
|
#if !defined(__WINDOWS__)
|
|
|
|
#undef wxUSE_DDE_FOR_IPC
|
|
|
|
#define wxUSE_DDE_FOR_IPC 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if wxUSE_DDE_FOR_IPC
|
|
|
|
#define wxConnection wxDDEConnection
|
|
|
|
#define wxServer wxDDEServer
|
|
|
|
#define wxClient wxDDEClient
|
|
|
|
|
|
|
|
#include "wx/dde.h"
|
|
|
|
#else // !wxUSE_DDE_FOR_IPC
|
|
|
|
#define wxConnection wxTCPConnection
|
|
|
|
#define wxServer wxTCPServer
|
|
|
|
#define wxClient wxTCPClient
|
|
|
|
|
|
|
|
#include "wx/sckipc.h"
|
|
|
|
#endif // wxUSE_DDE_FOR_IPC/!wxUSE_DDE_FOR_IPC
|
|
|
|
|
2005-09-25 16:49:40 -04:00
|
|
|
#endif // _WX_IPC_H_
|