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"

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)
 

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 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: