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... | |
Macros | |
#define | IPC_BUF_SIZE 4096 |
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 () |
Variables | |
static char | client_ipc_buffer [IPC_BUF_SIZE] |
std::unique_ptr< ASYNC_SOCKET_HOLDER > | socketHolder = nullptr |
#define IPC_BUF_SIZE 4096 |
Definition at line 39 of file eda_dde.cpp.
|
static |
bool SendCommand | ( | int | aService, |
const std::string & | aMessage | ||
) |
Used by a client to sent (by a socket connection) a data to a server.
Must be called to clean up the socket thread used by SendCommand.
aService | is the service number for the TC/IP connection. |
aMessage | is 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().
void SocketCleanup | ( | ) |
Definition at line 319 of file eda_dde.cpp.
References socketHolder.
Referenced by EDA_BASE_FRAME::~EDA_BASE_FRAME().
|
static |
Definition at line 40 of file eda_dde.cpp.
Referenced by KIWAY_PLAYER::OnSockRequest().
std::unique_ptr<ASYNC_SOCKET_HOLDER> socketHolder = nullptr |
Definition at line 298 of file eda_dde.cpp.
Referenced by SendCommand(), and SocketCleanup().