2011-09-30 18:15:37 +00:00
|
|
|
/**
|
|
|
|
* @file eda_dde.h
|
|
|
|
* @brief DDE server & client.
|
|
|
|
*/
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2012-08-24 11:31:09 +00:00
|
|
|
#ifndef EDA_DDE_H_
|
|
|
|
#define EDA_DDE_H_
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
#include <wx/socket.h>
|
|
|
|
|
|
|
|
|
2011-09-30 18:15:37 +00:00
|
|
|
// TCP/IP ports used by Pcbnew and Eeschema respectively.
|
|
|
|
|
|
|
|
///< Pcbnew listens on this port for commands from Eeschema
|
|
|
|
#define KICAD_PCB_PORT_SERVICE_NUMBER 4242
|
|
|
|
|
|
|
|
///< Eeschema listens on this port for commands from Pcbnew
|
|
|
|
#define KICAD_SCH_PORT_SERVICE_NUMBER 4243
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
|
2007-08-14 19:24:48 +00:00
|
|
|
#define MSG_TO_PCB KICAD_PCB_PORT_SERVICE_NUMBER
|
|
|
|
#define MSG_TO_SCH KICAD_SCH_PORT_SERVICE_NUMBER
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2012-08-24 11:31:09 +00:00
|
|
|
wxSocketServer* CreateServer( wxWindow * window, int port, bool local = true );
|
2007-08-14 19:24:48 +00:00
|
|
|
bool SendCommand( int port, const char* cmdline );
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2012-08-24 11:31:09 +00:00
|
|
|
#endif // EDA_DDE_H_
|