FreeRDP
server/disp_main.c File Reference
#include <freerdp/config.h>
#include "disp_main.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/synch.h>
#include <winpr/thread.h>
#include <winpr/stream.h>
#include <winpr/sysinfo.h>
#include <freerdp/channels/wtsvc.h>
#include <freerdp/channels/log.h>
#include <freerdp/server/disp.h>
#include "../disp_common.h"

Macros

#define TAG   CHANNELS_TAG("rdpedisp.server")
 

Functions

static wStreamdisp_server_single_packet_new (UINT32 type, UINT32 length)
 
static void disp_server_sanitize_monitor_layout (DISPLAY_CONTROL_MONITOR_LAYOUT *monitor)
 
static BOOL disp_server_is_monitor_layout_valid (const DISPLAY_CONTROL_MONITOR_LAYOUT *monitor)
 
static UINT disp_recv_display_control_monitor_layout_pdu (wStream *s, DispServerContext *context)
 
static UINT disp_server_receive_pdu (DispServerContext *context, wStream *s)
 
static UINT disp_server_handle_messages (DispServerContext *context)
 
static DWORD WINAPI disp_server_thread_func (LPVOID arg)
 
static UINT disp_server_open (DispServerContext *context)
 
static UINT disp_server_packet_send (DispServerContext *context, wStream *s)
 
static UINT disp_server_send_caps_pdu (DispServerContext *context)
 
static UINT disp_server_close (DispServerContext *context)
 
DispServerContext * disp_server_context_new (HANDLE vcm)
 
void disp_server_context_free (DispServerContext *context)
 

Macro Definition Documentation

◆ TAG

#define TAG   CHANNELS_TAG("rdpedisp.server")

FreeRDP: A Remote Desktop Protocol Implementation RDPEDISP Virtual Channel Extension

Copyright 2019 Kobi Mizrachi kmizr.nosp@m.achi.nosp@m.18@gm.nosp@m.ail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ disp_recv_display_control_monitor_layout_pdu()

static UINT disp_recv_display_control_monitor_layout_pdu ( wStream s,
DispServerContext *  context 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_close()

static UINT disp_server_close ( DispServerContext *  context)
static

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_context_free()

void disp_server_context_free ( DispServerContext *  context)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_context_new()

DispServerContext* disp_server_context_new ( HANDLE  vcm)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_handle_messages()

static UINT disp_server_handle_messages ( DispServerContext *  context)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_is_monitor_layout_valid()

static BOOL disp_server_is_monitor_layout_valid ( const DISPLAY_CONTROL_MONITOR_LAYOUT monitor)
static
Here is the caller graph for this function:

◆ disp_server_open()

static UINT disp_server_open ( DispServerContext *  context)
static

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_packet_send()

static UINT disp_server_packet_send ( DispServerContext *  context,
wStream s 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_receive_pdu()

static UINT disp_server_receive_pdu ( DispServerContext *  context,
wStream s 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_sanitize_monitor_layout()

static void disp_server_sanitize_monitor_layout ( DISPLAY_CONTROL_MONITOR_LAYOUT monitor)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_send_caps_pdu()

static UINT disp_server_send_caps_pdu ( DispServerContext *  context)
static

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_single_packet_new()

static wStream* disp_server_single_packet_new ( UINT32  type,
UINT32  length 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_server_thread_func()

static DWORD WINAPI disp_server_thread_func ( LPVOID  arg)
static
Here is the call graph for this function:
Here is the caller graph for this function: