mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Initial connect instruction support, connection UUIDs
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <uuid/uuid.h>
|
||||
|
||||
#include "guacio.h"
|
||||
#include "protocol.h"
|
||||
|
||||
@@ -154,6 +156,15 @@ void guac_send_size(GUACIO* io, int w, int h) {
|
||||
guac_write_string(io, ";");
|
||||
}
|
||||
|
||||
void guac_send_uuid(GUACIO* io, uuid_t uuid) {
|
||||
|
||||
guac_write_string(io, "uuid:");
|
||||
guac_write_base64(io, uuid, 16);
|
||||
guac_flush_base64(io);
|
||||
guac_write_string(io, ";");
|
||||
|
||||
}
|
||||
|
||||
void guac_send_clipboard(GUACIO* io, const char* data) {
|
||||
|
||||
char* escaped = guac_escape_string(data);
|
||||
|
Reference in New Issue
Block a user