21 |
#include "rdesktop.h" |
#include "rdesktop.h" |
22 |
|
|
23 |
/* Send a self-contained ISO PDU */ |
/* Send a self-contained ISO PDU */ |
24 |
static void iso_send_msg(uint8 code) |
static void |
25 |
|
iso_send_msg(uint8 code) |
26 |
{ |
{ |
27 |
STREAM s; |
STREAM s; |
28 |
|
|
43 |
} |
} |
44 |
|
|
45 |
/* Receive a message on the ISO layer, return code */ |
/* Receive a message on the ISO layer, return code */ |
46 |
static STREAM iso_recv_msg(uint8 *code) |
static STREAM |
47 |
|
iso_recv_msg(uint8 *code) |
48 |
{ |
{ |
49 |
STREAM s; |
STREAM s; |
50 |
uint16 length; |
uint16 length; |
82 |
} |
} |
83 |
|
|
84 |
/* Initialise ISO transport data packet */ |
/* Initialise ISO transport data packet */ |
85 |
STREAM iso_init(int length) |
STREAM |
86 |
|
iso_init(int length) |
87 |
{ |
{ |
88 |
STREAM s; |
STREAM s; |
89 |
|
|
94 |
} |
} |
95 |
|
|
96 |
/* Send an ISO data PDU */ |
/* Send an ISO data PDU */ |
97 |
void iso_send(STREAM s) |
void |
98 |
|
iso_send(STREAM s) |
99 |
{ |
{ |
100 |
uint16 length; |
uint16 length; |
101 |
|
|
114 |
} |
} |
115 |
|
|
116 |
/* Receive ISO transport data packet */ |
/* Receive ISO transport data packet */ |
117 |
STREAM iso_recv() |
STREAM |
118 |
|
iso_recv() |
119 |
{ |
{ |
120 |
STREAM s; |
STREAM s; |
121 |
uint8 code; |
uint8 code; |
131 |
} |
} |
132 |
|
|
133 |
/* Establish a connection up to the ISO layer */ |
/* Establish a connection up to the ISO layer */ |
134 |
BOOL iso_connect(char *server) |
BOOL |
135 |
|
iso_connect(char *server) |
136 |
{ |
{ |
137 |
uint8 code; |
uint8 code; |
138 |
|
|
152 |
} |
} |
153 |
|
|
154 |
/* Disconnect from the ISO layer */ |
/* Disconnect from the ISO layer */ |
155 |
void iso_disconnect() |
void |
156 |
|
iso_disconnect() |
157 |
{ |
{ |
158 |
iso_send_msg(ISO_PDU_DR); |
iso_send_msg(ISO_PDU_DR); |
159 |
tcp_disconnect(); |
tcp_disconnect(); |