|
|
|
@ -24,7 +24,8 @@
|
|
|
|
|
#include "parse.h"
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
struct trans *APP_CC
|
|
|
|
|
struct trans *
|
|
|
|
|
APP_CC
|
|
|
|
|
trans_create(int mode, int in_size, int out_size)
|
|
|
|
|
{
|
|
|
|
|
struct trans *self = (struct trans *) NULL;
|
|
|
|
@ -101,8 +102,7 @@ trans_get_wait_objs(struct trans *self, tbus *objs, int *count)
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
int APP_CC
|
|
|
|
|
trans_get_wait_objs_rw(struct trans *self,
|
|
|
|
|
tbus *robjs, int *rcount,
|
|
|
|
|
trans_get_wait_objs_rw(struct trans *self, tbus *robjs, int *rcount,
|
|
|
|
|
tbus *wobjs, int *wcount)
|
|
|
|
|
{
|
|
|
|
|
if (self == 0)
|
|
|
|
@ -233,8 +233,10 @@ trans_check_wait_objs(struct trans *self)
|
|
|
|
|
in_trans->type1 = TRANS_TYPE_SERVER;
|
|
|
|
|
in_trans->status = TRANS_STATUS_UP;
|
|
|
|
|
in_trans->is_term = self->is_term;
|
|
|
|
|
g_strncpy(in_trans->addr, self->addr, sizeof(self->addr) - 1);
|
|
|
|
|
g_strncpy(in_trans->port, self->port, sizeof(self->port) - 1);
|
|
|
|
|
g_strncpy(in_trans->addr, self->addr,
|
|
|
|
|
sizeof(self->addr) - 1);
|
|
|
|
|
g_strncpy(in_trans->port, self->port,
|
|
|
|
|
sizeof(self->port) - 1);
|
|
|
|
|
|
|
|
|
|
if (self->trans_conn_in(self, in_trans) != 0)
|
|
|
|
|
{
|
|
|
|
@ -615,7 +617,8 @@ trans_listen(struct trans *self, char *port)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
struct stream *APP_CC
|
|
|
|
|
struct stream *
|
|
|
|
|
APP_CC
|
|
|
|
|
trans_get_in_s(struct trans *self)
|
|
|
|
|
{
|
|
|
|
|
struct stream *rv = (struct stream *) NULL;
|
|
|
|
@ -633,7 +636,8 @@ trans_get_in_s(struct trans *self)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
struct stream *APP_CC
|
|
|
|
|
struct stream *
|
|
|
|
|
APP_CC
|
|
|
|
|
trans_get_out_s(struct trans *self, int size)
|
|
|
|
|
{
|
|
|
|
|
struct stream *rv = (struct stream *) NULL;
|
|
|
|
@ -684,8 +688,9 @@ trans_shutdown_tls_mode(struct trans *self)
|
|
|
|
|
return xrdp_tls_disconnect(self->tls);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* set callback back to tcp */
|
|
|
|
|
/* set callback back to tcp
|
|
|
|
|
self->trans_read_call = trans_tcp_force_read_s;
|
|
|
|
|
self->trans_write_call = trans_tcp_force_write_s;
|
|
|
|
|
*/
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|