mirror of
https://github.com/debauchee/barrier.git
synced 2025-10-08 20:47:36 +02:00
ipc send message to client finished.
This commit is contained in:
parent
97b2cd669d
commit
79d73bd163
10 changed files with 239 additions and 28 deletions
src/lib/ipc
|
@ -24,6 +24,7 @@
|
|||
#include "CIpcClientProxy.h"
|
||||
#include "IStream.h"
|
||||
#include "IDataSocket.h"
|
||||
#include "CIpcMessage.h"
|
||||
|
||||
CEvent::Type CIpcServer::s_clientConnectedEvent = CEvent::kUnknown;
|
||||
|
||||
|
@ -71,3 +72,12 @@ CIpcServer::getClientConnectedEvent()
|
|||
return EVENTQUEUE->registerTypeOnce(
|
||||
s_clientConnectedEvent, "CIpcServer::clientConnected");
|
||||
}
|
||||
|
||||
void
|
||||
CIpcServer::send(const CIpcMessage& message)
|
||||
{
|
||||
CClientSet::iterator it;
|
||||
for (it = m_clients.begin(); it != m_clients.end(); it++) {
|
||||
(*it)->send(message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue