bRAWcap 1.0.1
b-plus Technologies - Ethernet Performance Transmitter Receiver
|
bRAWcap API - User mode types. More...
#include "brawcap_types_shared.h"
Go to the source code of this file.
Data Structures | |
union | brawcap_adapter_ipv4_t |
IPv4 address. More... | |
union | brawcap_adapter_ipv6_t |
IPv6 address. More... | |
Macros | |
#define | _BRAWCAP_API_FUNC(returnType) __declspec(dllimport) returnType __cdecl |
Dynamic/automatic function import for loading/including. | |
#define | BRAWCAP_ADAPTER_MAC_LENGTH 6 |
Required number of bytes for describing a MAC address. The defined length does not containing any delimiters, it represents the number of MAC address digits. | |
#define | BRAWCAP_ADAPTER_NAME_LENGTH 40 |
The max supported length for an adapter name. | |
#define | BRAWCAP_RX_BUFFERS_PER_HANDLE_MAX 2 |
Max number of supported packet (receive) buffers per bRAWcap handle. | |
Typedefs | |
typedef struct _brawcap_handle | brawcap_handle_t |
A bRAWcap handle. | |
typedef UINT8 | brawcap_adapter_count_t |
Type used for counting the available/supported adapters on a machine. | |
typedef UINT8 | brawcap_adapter_mac_t[BRAWCAP_ADAPTER_MAC_LENGTH] |
Fixed size array describing a MAC address. | |
typedef char | brawcap_adapter_name_t[BRAWCAP_ADAPTER_NAME_LENGTH] |
Fixed size array containing a adapter name. | |
typedef UINT64 | brawcap_adapter_mtu_t |
Type for handling the adapter maximum transmission unit (MTU). | |
typedef void(* | brawcap_adapter_notify_callback_t) (const brawcap_adapter_name_t name, const brawcap_adapter_notify_reason_t reason, const UINT32 properties, void *pUser) |
The general callback for adapter change notifications. It will be called each time a available and supported adapter change is detected. | |
typedef void(* | brawcap_adapter_notify_handle_callback_t) (brawcap_handle_t *const pHandle, const brawcap_adapter_notify_reason_t reason, const UINT32 properties, void *pUser) |
The per handle callback for adapter change notifications. It will be called each time a change for the handle underlying adapter (and only for this adapter) is detected. | |
typedef void(* | brawcap_rx_callback_t) (brawcap_handle_t *const pHandle, const brawcap_status_t status, brawcap_buffer_t *const pBuffer, void *pUser) |
Receive callback which is called each time a receive has finished. Receiving can be started with brawcap_rx_start and has to be stopped with brawcap_rx_stop. Before anything can be received it is necessary to attach packet buffers to the bRAWcap handle. This can be done by creating new bRAWcap buffers (brawcap_buffer_create) and attach it with brawcap_rx_buffer_attach. | |
typedef void(* | brawcap_tx_callback_t) (brawcap_handle_t *const pHandle, const brawcap_status_t status, brawcap_buffer_t *const pBuffer, void *pUser) |
Transmit callback which is called each time a transmission initiated with brawcap_tx_buffer_send has finished. | |
bRAWcap API - User mode types.
The file includes all (data)types and defines used for bRAWcap (user space only).
All rights exclusively reserved for b-plus GmbH, unless expressly otherwise agreed.
Redistribution in source or any other form, with or without modification, is not permitted.
You may use this code under the according license terms of b-plus. Please contact b-plus at servi.nosp@m.ces@.nosp@m.b-plu.nosp@m.s.co.nosp@m.m to get the appropriate terms and conditions.