예제 #1
0
파일: channels.c 프로젝트: 99455125/FreeRDP
void freerdp_channels_dummy() 
{
	audin_server_context_new(NULL);
	audin_server_context_free(NULL);

	rdpsnd_server_context_new(NULL);
	rdpsnd_server_context_free(NULL);

	cliprdr_server_context_new(NULL);
	cliprdr_server_context_free(NULL);

	echo_server_context_new(NULL);
	echo_server_context_free(NULL);

	rdpdr_server_context_new(NULL);
	rdpdr_server_context_free(NULL);

	drdynvc_server_context_new(NULL);
	drdynvc_server_context_free(NULL);

	rdpei_server_context_new(NULL);
	rdpei_server_context_free(NULL);

	remdesk_server_context_new(NULL);
	remdesk_server_context_free(NULL);

	encomsp_server_context_new(NULL);
	encomsp_server_context_free(NULL);

	rdpgfx_server_context_new(NULL);
	rdpgfx_server_context_free(NULL);
}
예제 #2
0
int freerds_channels_post_connect(rdsConnection* session)
{
	int i;
	rdpSettings* settings = session->settings;

	for (i = 0; i < settings->ChannelCount; i++)
	{

		if (settings->ChannelDefArray[i].joined)
		{
			BOOL allowed = FALSE;

			freerds_icp_IsChannelAllowed(session->id, settings->ChannelDefArray[i].Name, &allowed);
			printf("channel %s is %s\n", settings->ChannelDefArray[i].Name, allowed ? "allowed" : "not allowed");
#if 0
			if (strncmp(settings->ChannelDefArray[i].Name, "cliprdr", 7) == 0)
			{
				printf("Channel %s registered\n", settings->ChannelDefArray[i].Name);
				session->cliprdr = cliprdr_server_context_new(session->vcm);
				session->cliprdr->Start(session->cliprdr);
			}
			else if (strncmp(settings->ChannelDefArray[i].Name, "rdpdr", 5) == 0)
			{
				printf("Channel %s registered\n", settings->ChannelDefArray[i].Name);
				session->rdpdr = rdpdr_server_context_new(session->vcm);
				session->rdpdr->Start(session->rdpdr);
			}
			else if (strncmp(settings->ChannelDefArray[i].Name, "rdpsnd", 6) == 0)
			{
				printf("Channel %s registered\n", settings->ChannelDefArray[i].Name);
				session->rdpsnd = rdpsnd_server_context_new(session->vcm);
				session->rdpsnd->Start(session->rdpsnd);
			}
			else if (strncmp(settings->ChannelDefArray[i].Name, "drdynvc", 7) == 0)
			{
				printf("Channel %s registered\n", settings->ChannelDefArray[i].Name);
				session->drdynvc = drdynvc_server_context_new(session->vcm);
				session->drdynvc->Start(session->drdynvc);
			}
			else
#endif
			{
				printf("Channel %s not registered\n", settings->ChannelDefArray[i].Name);
			}
		}
	}

	return 0;
}
예제 #3
0
int xrdp_channels_post_connect(xrdpSession* session)
{
	int i;
	rdpSettings* settings = session->settings;

	for (i = 0; i < settings->ChannelCount; i++)
	{
		if (settings->ChannelDefArray[i].joined)
		{
#if 0
			if (strncmp(settings->ChannelDefArray[i].Name, "cliprdr", 7) == 0)
			{
				printf("Channel %s registered\n", settings->ChannelDefArray[i].Name);
				session->cliprdr = cliprdr_server_context_new(session->vcm);
				session->cliprdr->Start(session->cliprdr);
			}
			else if (strncmp(settings->ChannelDefArray[i].Name, "rdpdr", 5) == 0)
			{
				printf("Channel %s registered\n", settings->ChannelDefArray[i].Name);
				session->rdpdr = rdpdr_server_context_new(session->vcm);
				session->rdpdr->Start(session->rdpdr);
			}
			else if (strncmp(settings->ChannelDefArray[i].Name, "rdpsnd", 6) == 0)
			{
				printf("Channel %s registered\n", settings->ChannelDefArray[i].Name);
				session->rdpsnd = rdpsnd_server_context_new(session->vcm);
				session->rdpsnd->Start(session->rdpsnd);
			}
			else if (strncmp(settings->ChannelDefArray[i].Name, "drdynvc", 7) == 0)
			{
				printf("Channel %s registered\n", settings->ChannelDefArray[i].Name);
				session->drdynvc = drdynvc_server_context_new(session->vcm);
				session->drdynvc->Start(session->drdynvc);
			}
			else
#endif
			{
				printf("Channel %s not registered\n", settings->ChannelDefArray[i].Name);
			}
		}
	}

	return 0;
}