FreeRDP
pcap.h File Reference
#include <freerdp/api.h>
#include <freerdp/types.h>
This graph shows which files directly or indirectly include this file:

Data Structures

struct  pcap_header
 
struct  pcap_record_header
 
struct  pcap_record
 
struct  rdpPcap
 

Functions

FREERDP_API rdpPcap * pcap_open (char *name, BOOL write)
 
FREERDP_API void pcap_close (rdpPcap *pcap)
 
FREERDP_API BOOL pcap_add_record (rdpPcap *pcap, void *data, UINT32 length)
 
FREERDP_API BOOL pcap_has_next_record (rdpPcap *pcap)
 
FREERDP_API BOOL pcap_get_next_record (rdpPcap *pcap, pcap_record *record)
 
FREERDP_API BOOL pcap_get_next_record_header (rdpPcap *pcap, pcap_record *record)
 
FREERDP_API BOOL pcap_get_next_record_content (rdpPcap *pcap, pcap_record *record)
 
FREERDP_API void pcap_flush (rdpPcap *pcap)
 

Variables

struct _pcap_header __attribute__
 

Function Documentation

FREERDP_API BOOL pcap_add_record ( rdpPcap *  pcap,
void data,
UINT32  length 
)

Here is the caller graph for this function:

FREERDP_API void pcap_close ( rdpPcap *  pcap)

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API void pcap_flush ( rdpPcap *  pcap)

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL pcap_get_next_record ( rdpPcap *  pcap,
pcap_record *  record 
)

Here is the call graph for this function:

FREERDP_API BOOL pcap_get_next_record_content ( rdpPcap *  pcap,
pcap_record *  record 
)

Here is the caller graph for this function:

FREERDP_API BOOL pcap_get_next_record_header ( rdpPcap *  pcap,
pcap_record *  record 
)

Here is the call graph for this function:

Here is the caller graph for this function:

FREERDP_API BOOL pcap_has_next_record ( rdpPcap *  pcap)

Here is the caller graph for this function:

FREERDP_API rdpPcap* pcap_open ( char *  name,
BOOL  write 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

static __inline void __attribute__

Consume bytes in buffer

This frees up the just-read bytes, ready for writing again.

Parameters
bufferCircular buffer
amountNumber of bytes to consume

Version of TPCircularBufferConsume without the memory barrier, for more optimal use in single-threaded contexts

Access front of buffer

This gives you a pointer to the front of the buffer, ready for writing, and the number of available bytes to write.

Parameters
bufferCircular buffer
availableBytesOn output, the number of bytes ready for writing
Returns
Pointer to the first bytes ready for writing, or NULL if buffer is full

Produce bytes in buffer

This marks the given section of the buffer ready for reading.

Parameters
bufferCircular buffer
amountNumber of bytes to produce

Version of TPCircularBufferProduce without the memory barrier, for more optimal use in single-threaded contexts

Helper routine to copy bytes to buffer

This copies the given bytes to the buffer, and marks them ready for writing.

Parameters
bufferCircular buffer
srcSource buffer
lenNumber of bytes in source buffer
Returns
true if bytes copied, false if there was insufficient space