2007-05-06 16:03:28 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: eda_dde.h
|
|
|
|
// Purpose: DDE server & client
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#define wxServer wxSocketServer
|
|
|
|
#define wxClient wxSocketClient
|
|
|
|
|
|
|
|
#include <wx/socket.h>
|
|
|
|
|
|
|
|
#define WinEDA_Server wxSocketServer
|
|
|
|
|
|
|
|
|
2007-08-14 19:24:48 +00:00
|
|
|
// TCP/IP ports used by PCBNEW and EESCHEMA respectively.
|
|
|
|
#define KICAD_PCB_PORT_SERVICE_NUMBER 4242 ///< PCBNEW listens on this port for commands from EESCHEMA
|
|
|
|
#define KICAD_SCH_PORT_SERVICE_NUMBER 4243 ///< EESCHEMA listens on this port for commands from PCBNEW
|
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
|
|
|
|
|
|
|
|
2007-08-14 19:24:48 +00:00
|
|
|
/********************/
|
|
|
|
/* autres fonctions */
|
|
|
|
/********************/
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2007-08-14 19:24:48 +00:00
|
|
|
WinEDA_Server * CreateServer( wxWindow * window, int port );
|
|
|
|
bool SendCommand( int port, const char* cmdline );
|
|
|
|
void SetupServerFunction( void (*remotefct) (const char* remotecmd) );
|
2007-05-06 16:03:28 +00:00
|
|
|
|