diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2015-07-05 23:14:46 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2015-07-05 23:14:46 -0700 |
commit | b56aa9832ecf1193d3d364556a7a5bde58508daf (patch) | |
tree | 802df8ee74bce0ba23a9e21234e415438de97c39 /common/trans.h | |
parent | f8432d0bb71e0b358c8ab32fdfae816229973034 (diff) | |
download | xrdp-proprietary-b56aa9832ecf1193d3d364556a7a5bde58508daf.tar.gz xrdp-proprietary-b56aa9832ecf1193d3d364556a7a5bde58508daf.zip |
work on main loop changes
Diffstat (limited to 'common/trans.h')
-rw-r--r-- | common/trans.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/common/trans.h b/common/trans.h index c2a10762..34816eed 100644 --- a/common/trans.h +++ b/common/trans.h @@ -45,6 +45,20 @@ typedef int (APP_CC *trans_recv_proc) (struct trans *self, void *ptr, int len); typedef int (APP_CC *trans_send_proc) (struct trans *self, const void *data, int len); typedef int (APP_CC *trans_can_recv_proc) (struct trans *self, int sck, int millis); +/* optional source info */ + +#define XRDP_SOURCE_NONE 0 +#define XRDP_SOURCE_CLIENT 1 +#define XRDP_SOURCE_SESMAN 2 +#define XRDP_SOURCE_CHANSRV 3 +#define XRDP_SOURCE_MOD 4 + +struct source_info +{ + int cur_source; + int source[7]; +}; + struct trans { tbus sck; /* socket handle */ @@ -68,6 +82,8 @@ struct trans trans_recv_proc trans_recv; trans_send_proc trans_send; trans_can_recv_proc trans_can_recv; + struct source_info *si; + int my_source; }; struct trans* APP_CC @@ -93,6 +109,8 @@ trans_force_write(struct trans* self); int APP_CC trans_write_copy(struct trans* self); int APP_CC +trans_write_copy_s(struct trans* self, struct stream* out_s); +int APP_CC trans_connect(struct trans* self, const char* server, const char* port, int timeout); int APP_CC |