Create outbound pipes for SVC.

This commit is contained in:
Michael Jumper 2014-03-02 10:51:52 -08:00
parent d630d66c8b
commit 38aa467233

View File

@ -32,6 +32,7 @@
#include <freerdp/constants.h>
#include <freerdp/utils/svc_plugin.h>
#include <guacamole/client.h>
#include <guacamole/protocol.h>
#ifdef ENABLE_WINPR
#include <winpr/stream.h>
@ -93,6 +94,11 @@ void guac_svc_process_connect(rdpSvcPlugin* plugin) {
* automatic free() within libfreerdp */
plugin->channel_entry_points.pExtendedData = NULL;
/* Create pipe */
svc->output_pipe = guac_client_alloc_stream(svc->client);
guac_protocol_send_pipe(svc->client->socket, svc->output_pipe,
"application/octet-stream", svc->name);
/* Log connection to static channel */
guac_client_log_info(svc->client,
"Static channel \"%s\" connected.", svc->name);