Merge branch 'feature/KASM-4034_unix_sockets' into 'master'
Add support for relaying unix sockets Closes KASM-4034 See merge request kasm-technologies/internal/KasmVNC!90
This commit is contained in:
@@ -1253,3 +1253,15 @@ void VNCServerST::refreshClients()
|
||||
(*i)->add_changed_all();
|
||||
}
|
||||
}
|
||||
|
||||
void VNCServerST::sendUnixRelayData(const char name[],
|
||||
const unsigned char *buf, const unsigned len)
|
||||
{
|
||||
// For each client subscribed to this channel, send the data to them
|
||||
std::list<VNCSConnectionST*>::iterator i;
|
||||
for (i = clients.begin(); i != clients.end(); i++) {
|
||||
if ((*i)->isSubscribedToUnixRelay(name)) {
|
||||
(*i)->sendUnixRelayData(name, buf, len);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user