static int WTSReceiveChannelData(freerdp_peer* client, int channelId, BYTE* data, int size, int flags, int total_size) { int i; BOOL result = FALSE; rdpPeerChannel* channel; for (i = 0; i < client->settings->ChannelCount; i++) { if (client->settings->ChannelDefArray[i].ChannelId == channelId) break; } if (i < client->settings->ChannelCount) { channel = (rdpPeerChannel*) client->settings->ChannelDefArray[i].handle; if (channel != NULL) { WTSProcessChannelData(channel, channelId, data, size, flags, total_size); result = TRUE; } } return result; }
static int WTSReceiveChannelData(freerdp_peer* client, UINT16 channelId, BYTE* data, int size, int flags, int totalSize) { UINT32 i; BOOL status = FALSE; rdpPeerChannel* channel; rdpMcs* mcs = client->context->rdp->mcs; for (i = 0; i < mcs->channelCount; i++) { if (mcs->channels[i].ChannelId == channelId) break; } if (i < mcs->channelCount) { channel = (rdpPeerChannel*) mcs->channels[i].handle; if (channel) { WTSProcessChannelData(channel, channelId, data, size, flags, totalSize); status = TRUE; } } return status; }
static int WTSReceiveChannelData(freerdp_peer* client, int channelId, uint8* data, int size, int flags, int total_size) { int i; boolean result = false; rdpPeerChannel* channel; for (i = 0; i < client->settings->num_channels; i++) { if (client->settings->channels[i].channel_id == channelId) break; } if (i < client->settings->num_channels) { channel = (rdpPeerChannel*) client->settings->channels[i].handle; if (channel != NULL) { WTSProcessChannelData(channel, channelId, data, size, flags, total_size); result = true; } } return result; }