summaryrefslogtreecommitdiffstats
path: root/common/trans.h
diff options
context:
space:
mode:
authorJustin Terry (VM) <juterry@microsoft.com>2017-09-21 16:13:05 -0700
committerjsorg71 <jay.sorg@gmail.com>2017-11-07 18:20:45 -0800
commit50bd624cc49d7409f6f73b65aeae4cabdec3e7ee (patch)
tree93efaaa410fb6bd279979bd1f590df407a22350f /common/trans.h
parent3d29b6ec768155b6eacf2846dbdb43eddde1d48c (diff)
downloadxrdp-proprietary-50bd624cc49d7409f6f73b65aeae4cabdec3e7ee.tar.gz
xrdp-proprietary-50bd624cc49d7409f6f73b65aeae4cabdec3e7ee.zip
Implements XRDP over vsock
1. Implements the ability to use AV_VSOCK for the transport rather than TCP. 2. Updates the ini file to be able to conditionally turn this feature on.
Diffstat (limited to 'common/trans.h')
-rw-r--r--common/trans.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/trans.h b/common/trans.h
index 77d1ed17..8b0b5a70 100644
--- a/common/trans.h
+++ b/common/trans.h
@@ -27,6 +27,10 @@
#define TRANS_MODE_TCP 1
#define TRANS_MODE_UNIX 2
+#if defined(XRDP_ENABLE_VSOCK)
+#define TRANS_MODE_VSOCK 3
+#endif
+
#define TRANS_TYPE_LISTENER 1
#define TRANS_TYPE_SERVER 2
#define TRANS_TYPE_CLIENT 3
@@ -62,7 +66,7 @@ struct source_info
struct trans
{
tbus sck; /* socket handle */
- int mode; /* 1 tcp, 2 unix socket */
+ int mode; /* 1 tcp, 2 unix socket, 3 vsock */
int status;
int type1; /* 1 listener 2 server 3 client */
ttrans_data_in trans_data_in;