FreeRDP
server/echo_main.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/synch.h>
#include <winpr/thread.h>
#include <winpr/stream.h>
#include <winpr/sysinfo.h>
#include <freerdp/server/echo.h>
#include <freerdp/channels/log.h>

Macros

#define TAG   CHANNELS_TAG("echo.server")
 

Functions

static UINT echo_server_open_channel (echo_server *echo)
 
static DWORD WINAPI echo_server_thread_func (LPVOID arg)
 
static UINT echo_server_open (echo_server_context *context)
 
static UINT echo_server_close (echo_server_context *context)
 
static BOOL echo_server_request (echo_server_context *context, const BYTE *buffer, UINT32 length)
 
echo_server_context * echo_server_context_new (HANDLE vcm)
 
void echo_server_context_free (echo_server_context *context)
 

Macro Definition Documentation

#define TAG   CHANNELS_TAG("echo.server")

FreeRDP: A Remote Desktop Protocol Implementation Echo Virtual Channel Extension

Copyright 2014 Vic Lee Copyright 2015 Thincast Technologies GmbH Copyright 2015 DI (FH) Martin Haimberger marti.nosp@m.n.ha.nosp@m.imber.nosp@m.ger@.nosp@m.thinc.nosp@m.ast..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

static UINT echo_server_close ( echo_server_context *  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:

void echo_server_context_free ( echo_server_context *  context)

Here is the call graph for this function:

Here is the caller graph for this function:

echo_server_context* echo_server_context_new ( HANDLE  vcm)

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT echo_server_open ( echo_server_context *  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:

static UINT echo_server_open_channel ( echo_server *  echo)
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:

static BOOL echo_server_request ( echo_server_context *  context,
const BYTE buffer,
UINT32  length 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD WINAPI echo_server_thread_func ( LPVOID  arg)
static

Here is the call graph for this function:

Here is the caller graph for this function: