KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eda_dde.h File Reference

DDE server & client. More...

#include <string>
#include <wx/socket.h>

Go to the source code of this file.

Macros

#define KICAD_PCB_PORT_SERVICE_NUMBER   4242
 < Pcbnew listens on this port for commands from Eeschema
 
#define KICAD_SCH_PORT_SERVICE_NUMBER   4243
 Scripting window listens for commands for other apps.
 
#define KICAD_PY_PORT_SERVICE_NUMBER   4244
 
#define MSG_TO_PCB   KICAD_PCB_PORT_SERVICE_NUMBER
 
#define MSG_TO_SCH   KICAD_SCH_PORT_SERVICE_NUMBER
 

Functions

bool SendCommand (int aPort, const std::string &aMessage)
 Must be called to clean up the socket thread used by SendCommand.
 
void SocketCleanup ()
 

Detailed Description

DDE server & client.

Definition in file eda_dde.h.

Macro Definition Documentation

◆ KICAD_PCB_PORT_SERVICE_NUMBER

#define KICAD_PCB_PORT_SERVICE_NUMBER   4242

< Pcbnew listens on this port for commands from Eeschema

Eeschema listens on this port for commands from Pcbnew

Definition at line 42 of file eda_dde.h.

◆ KICAD_PY_PORT_SERVICE_NUMBER

#define KICAD_PY_PORT_SERVICE_NUMBER   4244

Definition at line 46 of file eda_dde.h.

◆ KICAD_SCH_PORT_SERVICE_NUMBER

#define KICAD_SCH_PORT_SERVICE_NUMBER   4243

Scripting window listens for commands for other apps.

Definition at line 45 of file eda_dde.h.

◆ MSG_TO_PCB

#define MSG_TO_PCB   KICAD_PCB_PORT_SERVICE_NUMBER

Definition at line 49 of file eda_dde.h.

◆ MSG_TO_SCH

#define MSG_TO_SCH   KICAD_SCH_PORT_SERVICE_NUMBER

Definition at line 50 of file eda_dde.h.

Function Documentation

◆ SendCommand()

bool SendCommand ( int  aService,
const std::string &  aMessage 
)

Must be called to clean up the socket thread used by SendCommand.

Must be called to clean up the socket thread used by SendCommand.

  • Open a Socket Client connection.
  • Send the buffer cmdline.
  • Close the socket connection.
Parameters
aServiceis the service number for the TC/IP connection.
aMessageis the message to send.

Definition at line 310 of file eda_dde.cpp.

References socketHolder.

Referenced by CVPCB_MAINFRAME::SendComponentSelectionToSch(), SCH_EDIT_FRAME::SendCrossProbeClearHighlight(), PCB_EDIT_FRAME::SendCrossProbeItem(), SCH_EDIT_FRAME::SendCrossProbeNetName(), PCB_EDIT_FRAME::SendCrossProbeNetName(), SCH_EDIT_FRAME::SendSelectItemsToPcb(), PCB_EDIT_FRAME::SendSelectItemsToSch(), and SCH_EDIT_FRAME::SetCrossProbeConnection().

◆ SocketCleanup()

void SocketCleanup ( )

Definition at line 319 of file eda_dde.cpp.

References socketHolder.

Referenced by EDA_BASE_FRAME::~EDA_BASE_FRAME().