FreeRDP
streamdump.c File Reference
#include <time.h>
#include <winpr/sysinfo.h>
#include <winpr/path.h>
#include <winpr/string.h>
#include <freerdp/freerdp.h>
#include <freerdp/streamdump.h>
#include <freerdp/transport_io.h>
#include "streamdump.h"

Macros

#define TAG   FREERDP_TAG("streamdump")
 

Functions

static UINT32 crc32b (const BYTE *data, size_t length)
 
static BOOL stream_dump_read_line (FILE *fp, wStream *s, UINT64 *pts, size_t *pOffset, UINT32 *flags)
 
static BOOL stream_dump_write_line (FILE *fp, UINT32 flags, wStream *s)
 
static FILE * stream_dump_get_file (const rdpSettings *settings, const char *mode)
 
SSIZE_T stream_dump_append (const rdpContext *context, UINT32 flags, wStream *s, size_t *offset)
 
SSIZE_T stream_dump_get (const rdpContext *context, UINT32 *flags, wStream *s, size_t *offset, UINT64 *pts)
 
static int stream_dump_transport_write (rdpTransport *transport, wStream *s)
 
static int stream_dump_transport_read (rdpTransport *transport, wStream *s)
 
static BOOL stream_dump_register_write_handlers (rdpContext *context)
 
static int stream_dump_replay_transport_write (rdpTransport *transport, wStream *s)
 
static int stream_dump_replay_transport_read (rdpTransport *transport, wStream *s)
 
static int stream_dump_replay_transport_tcp_connect (rdpContext *context, rdpSettings *settings, const char *hostname, int port, DWORD timeout)
 
static BOOL stream_dump_replay_transport_tls_connect (rdpTransport *transport)
 
static BOOL stream_dump_replay_transport_accept (rdpTransport *transport)
 
static BOOL stream_dump_register_read_handlers (rdpContext *context)
 
BOOL stream_dump_register_handlers (rdpContext *context, CONNECTION_STATE state, BOOL isServer)
 
void stream_dump_free (rdpStreamDumpContext *dump)
 
rdpStreamDumpContext * stream_dump_new (void)
 

Macro Definition Documentation

◆ TAG

#define TAG   FREERDP_TAG("streamdump")

FreeRDP: A Remote Desktop Protocol Implementation

RDP session stream dump interface

Copyright 2022 Armin Novak Copyright 2022 Thincast Technologies GmbH

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

◆ crc32b()

static UINT32 crc32b ( const BYTE data,
size_t  length 
)
static
Here is the caller graph for this function:

◆ stream_dump_append()

SSIZE_T stream_dump_append ( const rdpContext *  context,
UINT32  flags,
wStream s,
size_t *  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_free()

void stream_dump_free ( rdpStreamDumpContext *  dump)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_get()

SSIZE_T stream_dump_get ( const rdpContext *  context,
UINT32 *  flags,
wStream s,
size_t *  offset,
UINT64 *  pts 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_get_file()

static FILE* stream_dump_get_file ( const rdpSettings *  settings,
const char *  mode 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_new()

rdpStreamDumpContext* stream_dump_new ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_read_line()

static BOOL stream_dump_read_line ( FILE *  fp,
wStream s,
UINT64 *  pts,
size_t *  pOffset,
UINT32 *  flags 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_register_handlers()

BOOL stream_dump_register_handlers ( rdpContext *  context,
CONNECTION_STATE  state,
BOOL  isServer 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_register_read_handlers()

static BOOL stream_dump_register_read_handlers ( rdpContext *  context)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_register_write_handlers()

static BOOL stream_dump_register_write_handlers ( rdpContext *  context)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_replay_transport_accept()

static BOOL stream_dump_replay_transport_accept ( rdpTransport *  transport)
static
Here is the caller graph for this function:

◆ stream_dump_replay_transport_read()

static int stream_dump_replay_transport_read ( rdpTransport *  transport,
wStream s 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_replay_transport_tcp_connect()

static int stream_dump_replay_transport_tcp_connect ( rdpContext *  context,
rdpSettings *  settings,
const char *  hostname,
int  port,
DWORD  timeout 
)
static
Here is the caller graph for this function:

◆ stream_dump_replay_transport_tls_connect()

static BOOL stream_dump_replay_transport_tls_connect ( rdpTransport *  transport)
static
Here is the caller graph for this function:

◆ stream_dump_replay_transport_write()

static int stream_dump_replay_transport_write ( rdpTransport *  transport,
wStream s 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_transport_read()

static int stream_dump_transport_read ( rdpTransport *  transport,
wStream s 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_transport_write()

static int stream_dump_transport_write ( rdpTransport *  transport,
wStream s 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stream_dump_write_line()

static BOOL stream_dump_write_line ( FILE *  fp,
UINT32  flags,
wStream s 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: