|
KiCad PCB EDA Suite
|
#include <condition_variable>#include <mutex>#include <thread>#include <eda_dde.h>#include <kiway_player.h>#include <id.h>#include <wx/crt.h>Go to the source code of this file.
Classes | |
| class | ASYNC_SOCKET_HOLDER |
| Spin up a thread to send messages via a socket. More... | |
Functions | |
| static const wxString | HOSTNAME (wxT("localhost")) |
| bool | SendCommand (int aService, const std::string &aMessage) |
| Used by a client to sent (by a socket connection) a data to a server. | |
| void | SocketCleanup () |
| Must be called to clean up the socket thread used by SendCommand. | |
Variables | |
| std::unique_ptr< ASYNC_SOCKET_HOLDER > | socketHolder = nullptr |
|
static |
| bool SendCommand | ( | int | aService, |
| const std::string & | aMessage ) |
Used by a client to sent (by a socket connection) a data to a server.
| aService | is the service number for the TC/IP connection. |
| aMessage | is the message to send. |
Definition at line 230 of file eda_dde.cpp.
References socketHolder.
Referenced by CVPCB_MAINFRAME::SendComponentSelectionToSch(), SCH_EDIT_FRAME::SendCrossProbeClearHighlight(), PCB_EDIT_FRAME::SendCrossProbeItem(), PCB_EDIT_FRAME::SendCrossProbeNetName(), SCH_EDIT_FRAME::SendCrossProbeNetName(), SCH_EDIT_FRAME::SendSelectItemsToPcb(), PCB_EDIT_FRAME::SendSelectItemsToSch(), and SCH_EDIT_FRAME::SetCrossProbeConnection().
| void SocketCleanup | ( | ) |
Must be called to clean up the socket thread used by SendCommand.
Definition at line 239 of file eda_dde.cpp.
References socketHolder.
Referenced by EDA_BASE_FRAME::~EDA_BASE_FRAME().
| std::unique_ptr<ASYNC_SOCKET_HOLDER> socketHolder = nullptr |
Definition at line 218 of file eda_dde.cpp.
Referenced by SendCommand(), and SocketCleanup().