ipc.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/ipc.h
  3. // Purpose: wrapper around different wxIPC classes implementations
  4. // Author: Vadim Zeitlin
  5. // Modified by:
  6. // Created: 15.04.02
  7. // Copyright: (c) 2002 Vadim Zeitlin
  8. // Licence: wxWindows licence
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_IPC_H_
  11. #define _WX_IPC_H_
  12. // Set wxUSE_DDE_FOR_IPC to 1 to use DDE for IPC under Windows. If it is set to
  13. // 0, or if the platform is not Windows, use TCP/IP for IPC implementation
  14. #if !defined(wxUSE_DDE_FOR_IPC)
  15. #ifdef __WINDOWS__
  16. #define wxUSE_DDE_FOR_IPC 1
  17. #else
  18. #define wxUSE_DDE_FOR_IPC 0
  19. #endif
  20. #endif // !defined(wxUSE_DDE_FOR_IPC)
  21. #if !defined(__WINDOWS__)
  22. #undef wxUSE_DDE_FOR_IPC
  23. #define wxUSE_DDE_FOR_IPC 0
  24. #endif
  25. #if wxUSE_DDE_FOR_IPC
  26. #define wxConnection wxDDEConnection
  27. #define wxServer wxDDEServer
  28. #define wxClient wxDDEClient
  29. #include "wx/dde.h"
  30. #else // !wxUSE_DDE_FOR_IPC
  31. #define wxConnection wxTCPConnection
  32. #define wxServer wxTCPServer
  33. #define wxClient wxTCPClient
  34. #include "wx/sckipc.h"
  35. #endif // wxUSE_DDE_FOR_IPC/!wxUSE_DDE_FOR_IPC
  36. #endif // _WX_IPC_H_