FreeRDP
sfreerdp.c File Reference
#include <errno.h>
#include <signal.h>
#include <winpr/crt.h>
#include <winpr/ssl.h>
#include <winpr/synch.h>
#include <winpr/string.h>
#include <winpr/path.h>
#include <winpr/winsock.h>
#include <freerdp/channels/wtsvc.h>
#include <freerdp/channels/channels.h>
#include <freerdp/constants.h>
#include <freerdp/server/rdpsnd.h>
#include "sf_audin.h"
#include "sf_rdpsnd.h"
#include "sf_encomsp.h"
#include "sfreerdp.h"
#include <freerdp/log.h>

Macros

#define TAG   SERVER_TAG("sample")
 
#define SAMPLE_SERVER_USE_CLIENT_RESOLUTION   1
 
#define SAMPLE_SERVER_DEFAULT_WIDTH   1024
 
#define SAMPLE_SERVER_DEFAULT_HEIGHT   768
 

Functions

BOOL test_peer_context_new (freerdp_peer *client, testPeerContext *context)
 
void test_peer_context_free (freerdp_peer *client, testPeerContext *context)
 
static BOOL test_peer_init (freerdp_peer *client)
 
static wStream * test_peer_stream_init (testPeerContext *context)
 
static void test_peer_begin_frame (freerdp_peer *client)
 
static void test_peer_end_frame (freerdp_peer *client)
 
static BOOL test_peer_draw_background (freerdp_peer *client)
 
static BOOL test_peer_load_icon (freerdp_peer *client)
 
static void test_peer_draw_icon (freerdp_peer *client, int x, int y)
 
static BOOL test_sleep_tsdiff (UINT32 *old_sec, UINT32 *old_usec, UINT32 new_sec, UINT32 new_usec)
 
BOOL tf_peer_dump_rfx (freerdp_peer *client)
 
static DWORD WINAPI tf_debug_channel_thread_func (LPVOID arg)
 
BOOL tf_peer_post_connect (freerdp_peer *client)
 
BOOL tf_peer_activate (freerdp_peer *client)
 
BOOL tf_peer_synchronize_event (rdpInput *input, UINT32 flags)
 
BOOL tf_peer_keyboard_event (rdpInput *input, UINT16 flags, UINT16 code)
 
BOOL tf_peer_unicode_keyboard_event (rdpInput *input, UINT16 flags, UINT16 code)
 
BOOL tf_peer_mouse_event (rdpInput *input, UINT16 flags, UINT16 x, UINT16 y)
 
BOOL tf_peer_extended_mouse_event (rdpInput *input, UINT16 flags, UINT16 x, UINT16 y)
 
static BOOL tf_peer_refresh_rect (rdpContext *context, BYTE count, const RECTANGLE_16 *areas)
 
static BOOL tf_peer_suppress_output (rdpContext *context, BYTE allow, const RECTANGLE_16 *area)
 
static DWORD WINAPI test_peer_mainloop (LPVOID arg)
 
static BOOL test_peer_accepted (freerdp_listener *instance, freerdp_peer *client)
 
static void test_server_mainloop (freerdp_listener *instance)
 
int main (int argc, char *argv[])
 

Variables

static char * test_pcap_file = NULL
 
static BOOL test_dump_rfx_realtime = TRUE
 

Macro Definition Documentation

#define SAMPLE_SERVER_DEFAULT_HEIGHT   768
#define SAMPLE_SERVER_DEFAULT_WIDTH   1024
#define SAMPLE_SERVER_USE_CLIENT_RESOLUTION   1
#define TAG   SERVER_TAG("sample")

FreeRDP: A Remote Desktop Protocol Implementation FreeRDP Test Server

Copyright 2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2011 Vic Lee Copyright 2014 Norbert Federa norbe.nosp@m.rt.f.nosp@m.edera.nosp@m.@thi.nosp@m.ncast.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

int main ( int  argc,
char *  argv[] 
)

Here is the call graph for this function:

static BOOL test_peer_accepted ( freerdp_listener *  instance,
freerdp_peer *  client 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_peer_begin_frame ( freerdp_peer *  client)
static

Here is the caller graph for this function:

void test_peer_context_free ( freerdp_peer *  client,
testPeerContext *  context 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL test_peer_context_new ( freerdp_peer *  client,
testPeerContext *  context 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL test_peer_draw_background ( freerdp_peer *  client)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_peer_draw_icon ( freerdp_peer *  client,
int  x,
int  y 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_peer_end_frame ( freerdp_peer *  client)
static

Here is the caller graph for this function:

static BOOL test_peer_init ( freerdp_peer *  client)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL test_peer_load_icon ( freerdp_peer *  client)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD WINAPI test_peer_mainloop ( LPVOID  arg)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static wStream* test_peer_stream_init ( testPeerContext *  context)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_server_mainloop ( freerdp_listener *  instance)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL test_sleep_tsdiff ( UINT32 old_sec,
UINT32 old_usec,
UINT32  new_sec,
UINT32  new_usec 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD WINAPI tf_debug_channel_thread_func ( LPVOID  arg)
static

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL tf_peer_activate ( freerdp_peer *  client)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL tf_peer_dump_rfx ( freerdp_peer *  client)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL tf_peer_extended_mouse_event ( rdpInput *  input,
UINT16  flags,
UINT16  x,
UINT16  y 
)

Here is the caller graph for this function:

BOOL tf_peer_keyboard_event ( rdpInput *  input,
UINT16  flags,
UINT16  code 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL tf_peer_mouse_event ( rdpInput *  input,
UINT16  flags,
UINT16  x,
UINT16  y 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL tf_peer_post_connect ( freerdp_peer *  client)

This callback is called when the entire connection sequence is done, i.e. we've received the Font List PDU from the client and sent out the Font Map PDU. The server may start sending graphics output and receiving keyboard/mouse input after this callback returns.

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL tf_peer_refresh_rect ( rdpContext *  context,
BYTE  count,
const RECTANGLE_16 *  areas 
)
static

Here is the caller graph for this function:

static BOOL tf_peer_suppress_output ( rdpContext *  context,
BYTE  allow,
const RECTANGLE_16 *  area 
)
static

Here is the caller graph for this function:

BOOL tf_peer_synchronize_event ( rdpInput *  input,
UINT32  flags 
)

Here is the caller graph for this function:

BOOL tf_peer_unicode_keyboard_event ( rdpInput *  input,
UINT16  flags,
UINT16  code 
)

Here is the caller graph for this function:

Variable Documentation

BOOL test_dump_rfx_realtime = TRUE
static
char* test_pcap_file = NULL
static