Go to the source code of this file.
|
VCHANNEL * | channel_register (RDPCLIENT *This, char *name, uint32 flags, void(*callback)(RDPCLIENT *, STREAM)) |
|
STREAM | channel_init (RDPCLIENT *This, VCHANNEL *channel, uint32 length) |
|
void | channel_send (RDPCLIENT *This, STREAM s, VCHANNEL *channel) |
|
void | channel_process (RDPCLIENT *This, STREAM s, uint16 mcs_channel) |
|
◆ channel_init()
Definition at line 66 of file channels.c.
67{
69
73}
#define s_push_layer(s, h, n)
STREAM sec_init(uint32 flags, int maxlen)
GLuint GLsizei GLsizei * length
◆ channel_process()
Definition at line 127 of file channels.c.
128{
134
135 for (
i = 0;
i <
This->num_channels;
i++)
136 {
137 channel = &
This->channels[
i];
138 if (channel->
mcs_id == mcs_channel)
139 break;
140 }
141
142 if (
i >=
This->num_channels)
143 return;
144
148 {
149
151 }
152 else
153 {
154
157 {
159 {
162 }
164 }
165
166 thislength =
MIN(
s->end -
s->p,
in->data +
in->size -
in->p);
169
171 {
175 }
176 }
177}
#define CHANNEL_FLAG_LAST
#define CHANNEL_FLAG_FIRST
#define in_uint32_le(s, v)
void * xrealloc(void *oldmem, size_t size)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memcpy(s1, s2, n)
◆ channel_register()
Definition at line 43 of file channels.c.
44{
46
49
51 {
52 error(
"Channel table full, increase MAX_CHANNELS\n");
54 }
55
56 channel = &
This->channels[
This->num_channels];
62 return channel;
63}
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
#define MCS_GLOBAL_CHANNEL
static IPrintDialogCallback callback
◆ channel_send()
Definition at line 76 of file channels.c.
77{
79 uint32 thislength, remaining;
81
82
84 length =
s->end -
s->p -
sizeof(CHANNEL_PDU_HEADER);
85
87
89
90
91
92
93 remaining =
length - thislength;
97
100 data =
s->end =
s->p + thislength;
101 DEBUG_CHANNEL((
"Sending %d bytes with FLAG_FIRST\n", thislength));
103
104
105 while (remaining > 0)
106 {
108 remaining -= thislength;
112
114
121
123 }
124}
#define CHANNEL_CHUNK_LENGTH
#define CHANNEL_FLAG_SHOW_PROTOCOL
#define CHANNEL_OPTION_SHOW_PROTOCOL
#define out_uint32_le(s, v)
#define s_pop_layer(s, h)
#define out_uint8p(s, v, n)
void sec_send_to_channel(STREAM s, uint32 flags, uint16 channel)
#define DEBUG_CHANNEL(args)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data