Create outbound pipes for SVC.
This commit is contained in:
parent
d630d66c8b
commit
38aa467233
@ -32,6 +32,7 @@
|
|||||||
#include <freerdp/constants.h>
|
#include <freerdp/constants.h>
|
||||||
#include <freerdp/utils/svc_plugin.h>
|
#include <freerdp/utils/svc_plugin.h>
|
||||||
#include <guacamole/client.h>
|
#include <guacamole/client.h>
|
||||||
|
#include <guacamole/protocol.h>
|
||||||
|
|
||||||
#ifdef ENABLE_WINPR
|
#ifdef ENABLE_WINPR
|
||||||
#include <winpr/stream.h>
|
#include <winpr/stream.h>
|
||||||
@ -93,6 +94,11 @@ void guac_svc_process_connect(rdpSvcPlugin* plugin) {
|
|||||||
* automatic free() within libfreerdp */
|
* automatic free() within libfreerdp */
|
||||||
plugin->channel_entry_points.pExtendedData = NULL;
|
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 */
|
/* Log connection to static channel */
|
||||||
guac_client_log_info(svc->client,
|
guac_client_log_info(svc->client,
|
||||||
"Static channel \"%s\" connected.", svc->name);
|
"Static channel \"%s\" connected.", svc->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user