summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_fastpath.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-03-07 12:45:33 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-03-07 12:45:33 -0800
commitff8821c308be44e20a340a02d84de3359fcdc700 (patch)
treeeef30e12152cad8463eec919002672f59fc0e7e5 /libxrdp/xrdp_fastpath.c
parentcf39a90d8052856518c87bff5e9f66e4855ab004 (diff)
downloadxrdp-proprietary-ff8821c308be44e20a340a02d84de3359fcdc700.tar.gz
xrdp-proprietary-ff8821c308be44e20a340a02d84de3359fcdc700.zip
libxrdp: fastpath output, orders working
Diffstat (limited to 'libxrdp/xrdp_fastpath.c')
-rw-r--r--libxrdp/xrdp_fastpath.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/libxrdp/xrdp_fastpath.c b/libxrdp/xrdp_fastpath.c
index 927f9407..681d5424 100644
--- a/libxrdp/xrdp_fastpath.c
+++ b/libxrdp/xrdp_fastpath.c
@@ -97,13 +97,28 @@ xrdp_fastpath_recv(struct xrdp_fastpath *self, struct stream *s)
}
/*****************************************************************************/
+/* no fragmenation */
int APP_CC
-xrdp_fastpath_init(struct xrdp_fastpath *self)
+xrdp_fastpath_init(struct xrdp_fastpath *self, struct stream *s)
{
+ init_stream(s, 32 * 1024);
return 0;
}
/*****************************************************************************/
+/* no fragmenation */
+int APP_CC
+xrdp_fastpath_send(struct xrdp_fastpath *self, struct stream *s)
+{
+ if (trans_force_write_s(self->trans, s) != 0)
+ {
+ return 1;
+ }
+ return 0;
+}
+
+#if 0
+/*****************************************************************************/
int APP_CC
xrdp_fastpath_send_update_pdu(struct xrdp_fastpath *self, tui8 updateCode,
struct stream *s)
@@ -165,6 +180,7 @@ xrdp_fastpath_send_update_pdu(struct xrdp_fastpath *self, tui8 updateCode,
return 0;
}
+#endif
/*****************************************************************************/
int
@@ -194,6 +210,7 @@ xrdp_fastpath_process_update(struct xrdp_fastpath *self, tui8 updateCode,
return 0;
}
+#if 0
/*****************************************************************************/
int APP_CC
xrdp_fastpath_process_data(struct xrdp_fastpath *self, struct stream *s,
@@ -249,6 +266,7 @@ xrdp_fastpath_process_data(struct xrdp_fastpath *self, struct stream *s,
in_uint16_le(s, size);
return xrdp_fastpath_process_update(self, updateCode, size, s);
}
+#endif
/*****************************************************************************/
/* FASTPATH_INPUT_EVENT_SCANCODE */