bRAWcap 1.0.1
b-plus Technologies - Ethernet Performance Transmitter Receiver
|
Types and functions for handling bRAWcap (Ethernet) adapters. More...
Data Structures | |
union | brawcap_adapter_ipv4_t |
IPv4 address. More... | |
union | brawcap_adapter_ipv6_t |
IPv6 address. More... | |
Macros | |
#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. | |
Typedefs | |
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. | |
Functions | |
brawcap_status_t | brawcap_adapter_list_update () |
Updates the list of supported adapters. This function searches the current machine for supported adapters and add them to the adapter list. | |
brawcap_status_t | brawcap_adapter_list_count (brawcap_adapter_count_t *const pCount) |
Reads out the current number of supported adapters in the adapter list. | |
brawcap_status_t | brawcap_adapter_list_at (const brawcap_adapter_count_t index, brawcap_adapter_name_t name) |
Reads out the adapter name of the adapter at the adapter list index. | |
brawcap_status_t | brawcap_adapter_notify_register (brawcap_adapter_notify_callback_t const callback, void *const pUser) |
Registers the calling process for receiving adapter change notifications. | |
brawcap_status_t | brawcap_adapter_notify_unregister () |
Unregisters the calling process from receiving adapter change notifications. | |
brawcap_status_t | brawcap_adapter_notify_handle_register (brawcap_handle_t *const pHandle, brawcap_adapter_notify_handle_callback_t const callback, void *const pUser) |
Registers the specified handle for receiving adapter change notifications. | |
brawcap_status_t | brawcap_adapter_notify_handle_unregister (brawcap_handle_t *const pHandle) |
Unregisters the specified handle from receiving adapter change notifications. | |
brawcap_status_t | brawcap_adapter_name_by_handle (brawcap_handle_t *const pHandle, brawcap_adapter_name_t name) |
Reads out the adapter name of the specified adapter. | |
brawcap_status_t | brawcap_adapter_friendly_name (const brawcap_adapter_name_t name, char *const friendlyName, UINT32 *const pLength) |
Reads out the currently set adapter friendly name for the specified adapter. | |
brawcap_status_t | brawcap_adapter_friendly_name_by_handle (brawcap_handle_t *const pHandle, char *const friendlyName, UINT32 *const pLength) |
Reads out the currently set friendly name of the specified adapter. | |
brawcap_status_t | brawcap_adapter_description (const brawcap_adapter_name_t name, char *const description, UINT32 *const pLength) |
Reads out the description of the specified adapter. | |
brawcap_status_t | brawcap_adapter_description_by_handle (brawcap_handle_t *const pHandle, char *const description, UINT32 *const pLength) |
Reads out the description of a network adapter based on the specified adapter. | |
brawcap_status_t | brawcap_adapter_ipv4 (const brawcap_adapter_name_t name, brawcap_adapter_ipv4_t *const pIpv4) |
Reads out the currently set IPv4 address of the specified adapter. | |
brawcap_status_t | brawcap_adapter_ipv4_by_handle (brawcap_handle_t *const pHandle, brawcap_adapter_ipv4_t *const pIpv4) |
Reads out the currently set IPv4 address of the specified adapter. | |
brawcap_status_t | brawcap_adapter_ipv6 (const brawcap_adapter_name_t name, brawcap_adapter_ipv6_t *const pIpv6) |
Reads out the currently set IPv6 address of the specified adapter. | |
brawcap_status_t | brawcap_adapter_ipv6_by_handle (brawcap_handle_t *const pHandle, brawcap_adapter_ipv6_t *const pIpv6) |
Reads out the currently set IPv6 address of the specified adapter. | |
brawcap_status_t | brawcap_adapter_mac (const brawcap_adapter_name_t name, brawcap_adapter_mac_t mac) |
Reads out the MAC address of the specified adapter. | |
brawcap_status_t | brawcap_adapter_mac_by_handle (brawcap_handle_t *const pHandle, brawcap_adapter_mac_t mac) |
Reads out the MAC address of the specified adapter. | |
brawcap_status_t | brawcap_adapter_speed_rx (const brawcap_adapter_name_t name, brawcap_adapter_speed_t *const pSpeed) |
Reads out the current receive speed of the specified adapter. | |
brawcap_status_t | brawcap_adapter_speed_rx_by_handle (brawcap_handle_t *const pHandle, brawcap_adapter_speed_t *const pSpeed) |
Reads out the current receive speed of the specified adapter. | |
brawcap_status_t | brawcap_adapter_speed_tx (const brawcap_adapter_name_t name, brawcap_adapter_speed_t *const pSpeed) |
Reads out the current transmit speed of the specified adapter. | |
brawcap_status_t | brawcap_adapter_speed_tx_by_handle (brawcap_handle_t *const pHandle, brawcap_adapter_speed_t *const pSpeed) |
Reads out the current transmit speed of the specified adapter. | |
brawcap_status_t | brawcap_adapter_connection (const brawcap_adapter_name_t name, brawcap_adapter_connection_state_t *const pConnection) |
Reads out the current connection state of the specified adapter. | |
brawcap_status_t | brawcap_adapter_connection_by_handle (brawcap_handle_t *const pHandle, brawcap_adapter_connection_state_t *const pConnection) |
Reads out the current connection state of the specified adapter. | |
brawcap_status_t | brawcap_adapter_operation (const brawcap_adapter_name_t name, brawcap_adapter_operation_state_t *const pOperation) |
Reads out the current operation state of the specified adapter. | |
brawcap_status_t | brawcap_adapter_operation_by_handle (brawcap_handle_t *const pHandle, brawcap_adapter_operation_state_t *const pOperation) |
Reads out the current operation state of the specified adapter. | |
brawcap_status_t | brawcap_adapter_mtu (const brawcap_adapter_name_t name, brawcap_adapter_mtu_t *const pMtu) |
Reads out the configured MTU of the specified adapter. | |
brawcap_status_t | brawcap_adapter_mtu_by_handle (brawcap_handle_t *const pHandle, brawcap_adapter_mtu_t *const pMtu) |
Reads out the configured MTU of the specified adapter. | |
Types and functions for handling bRAWcap (Ethernet) adapters.
This module provides many features that facilitate the detection of bRAWcap (Ethernet) adapters. It allows to scan the local machine for available and supported adapters, to resolve many useful adapter properties for each adapter and also an adapter change notification.
Adapter change notifications inform your application directly when any of the available properties have changed, or when a new adapter has been found or an existing one has been removed (e.g. by disabling the interface).
When you use these functions, they make all calls to the Windows API - related to adapter handling - obsolete.
List of examples:
union brawcap_adapter_ipv4_t |
IPv4 address.
Data Fields | ||
---|---|---|
UINT8 | bytes[4] |
IPv4 address as byte array. |
UINT16 | words[2] |
IPv4 address as word array (each element has two Bytes). |
UINT32 | addr |
IPv4 address as single integer value. |
union brawcap_adapter_ipv6_t |
IPv6 address.
#define BRAWCAP_ADAPTER_NAME_LENGTH 40 |
#include <brawcap_types_um.h>
The max supported length for an adapter name.
typedef UINT8 brawcap_adapter_mac_t[BRAWCAP_ADAPTER_MAC_LENGTH] |
#include <brawcap_types_um.h>
Fixed size array describing a MAC address.
The array only contains the MAC address digits without any delimiters.
typedef char brawcap_adapter_name_t[BRAWCAP_ADAPTER_NAME_LENGTH] |
#include <brawcap_types_um.h>
Fixed size array containing a adapter name.
typedef UINT64 brawcap_adapter_mtu_t |
#include <brawcap_types_um.h>
Type for handling the adapter maximum transmission unit (MTU).
It describes the maximum bytes per packet which can be received/transmitted on the adapter. Typical values are 1500 bytes for default sized Ethernet and 9000 bytes for jumbo frames.
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) |
#include <brawcap_types_um.h>
The general callback for adapter change notifications. It will be called each time a available and supported adapter change is detected.
[in] | name | The adapter name on which the change happened. |
[in] | reason | The reason/type of change (see brawcap_adapter_notify_reason_t). |
[in] | properties | A bit field with the properties that have changed (see brawcap_adapter_properties_t). |
[in] | pUser | Pointer to a user defined context. It allows access to user specific data within the callback. |
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) |
#include <brawcap_types_um.h>
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.
[in] | pHandle | The handle for which the adapter change notification was registered. |
[in] | reason | The reason/type of change (see brawcap_adapter_notify_reason_t). |
[in] | properties | A bit field with the properties that have changed (see brawcap_adapter_properties_t). |
[in] | pUser | Pointer to a user defined context. It allows access to user specific data within the callback. |
#include <brawcap_types_um.h>
List of bRAWcap adapter speeds. Values indicating the current adapter uplink speed.
#include <brawcap_types_um.h>
List of adapter connection states. Values indicating the current adapter connection state (uplink/cable connected).
#include <brawcap_types_um.h>
List of adapter operation states. Values indicating the current adapter operation state (adapter driver status).
#include <brawcap_types_um.h>
List of reasons for adapter change notifications. This values indicate why a adapter change notification is received.
Enumerator | |
---|---|
BRAWCAP_ADAPTER_NOTIFY_REASON_UNKNOWN | The notification reason is unknown. |
BRAWCAP_ADAPTER_NOTIFY_REASON_ADD | A new bRAWcap adapter was detected. E.g. due to enabling bRAWcap driver on an adapter where it was disabled before. |
BRAWCAP_ADAPTER_NOTIFY_REASON_REMOVE | A bRAWcap adapter was removed. E.g. due to disabling bRAWcap driver on an adapter where it was enabled before. |
BRAWCAP_ADAPTER_NOTIFY_REASON_PROPERTY_CHANGE | A adapter property has changed. This can have several reasons, for a list of all properties see brawcap_adapter_properties_t. |
#include <brawcap_types_um.h>
List of adapter properties. They are used to identify adapter change notifications with a property change reason.
brawcap_status_t brawcap_adapter_list_update | ( | ) |
#include <brawcap.h>
Updates the list of supported adapters. This function searches the current machine for supported adapters and add them to the adapter list.
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
brawcap_status_t brawcap_adapter_list_count | ( | brawcap_adapter_count_t *const | pCount | ) |
#include <brawcap.h>
Reads out the current number of supported adapters in the adapter list.
[out] | pCount | Will contain the current number of adapters in the list, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
brawcap_status_t brawcap_adapter_list_at | ( | const brawcap_adapter_count_t | index, |
brawcap_adapter_name_t | name | ||
) |
#include <brawcap.h>
Reads out the adapter name of the adapter at the adapter list index.
[in] | index | The index of the adapter in the adapter list.. |
[out] | name | Will contain the name of the adapter, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_PARAM_OUT_OF_RANGE | Specified index exceeds adapter list length. |
brawcap_status_t brawcap_adapter_notify_register | ( | brawcap_adapter_notify_callback_t const | callback, |
void *const | pUser | ||
) |
#include <brawcap.h>
Registers the calling process for receiving adapter change notifications.
The given callback function will be called each time a adapter change is recognized by bRAWcap for any of the supported adapters on the current machine.
[in] | callback | Function pointer to the callback function which should be executed each time a adapter change is registered. |
[in] | pUser | Pointer to a user defined context. This allows access to user specific data within the callback. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_INFO_ALREADY_REGISTERED | Calling process has already registered for this notification. |
brawcap_status_t brawcap_adapter_notify_unregister | ( | ) |
#include <brawcap.h>
Unregisters the calling process from receiving adapter change notifications.
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_INFO_NOT_REGISTERED | Calling process was not registered for this notification. |
brawcap_status_t brawcap_adapter_notify_handle_register | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_notify_handle_callback_t const | callback, | ||
void *const | pUser | ||
) |
#include <brawcap.h>
Registers the specified handle for receiving adapter change notifications.
This registration only receives adapter change notifications related to the underlying adapter of the given bRAWcap handle. Whereas brawcap_adapter_notify_register notifies about adapter changes for all supported adapters on the current machine.
Each bRAWcap handle can register for this notification once.
[in] | pHandle | Handle to register for adapter notifications. |
[in] | pUser | Pointer to a user defined context. This allows access to user specific data within the callback. |
[in] | callback | Function pointer to the callback function which should be executed each time a adapter change is registered. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_INFO_ALREADY_REGISTERED | Specified handle has already registered for this notification. |
brawcap_status_t brawcap_adapter_notify_handle_unregister | ( | brawcap_handle_t *const | pHandle | ) |
#include <brawcap.h>
Unregisters the specified handle from receiving adapter change notifications.
[in] | pHandle | Handle to unregister for adapter notifications. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_INFO_NOT_REGISTERED | Specified handle was not registered for this notification. |
brawcap_status_t brawcap_adapter_name_by_handle | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_name_t | name | ||
) |
#include <brawcap.h>
Reads out the adapter name of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | name | Will contain the adapter name, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the pointer parameters was invalid. |
brawcap_status_t brawcap_adapter_friendly_name | ( | const brawcap_adapter_name_t | name, |
char *const | friendlyName, | ||
UINT32 *const | pLength | ||
) |
#include <brawcap.h>
Reads out the currently set adapter friendly name for the specified adapter.
[in] | name | Name of the adapter. |
[out] | friendlyName | Pointer to a buffer which will contain the currently set adapter friendly name, afterwards. This parameter can be NULL. If it is NULL the function will set the required buffer length in pLength and return BRAWCAP_STATUS_ERROR_OVERRUN. |
[in,out] | pLength | Length of the provided buffer. If the specified length is to short, it will be set to the required length and BRAWCAP_STATUS_ERROR_OVERRUN is returned. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
BRAWCAP_STATUS_ERROR_OVERRUN | Given buffer length was to short. |
brawcap_status_t brawcap_adapter_friendly_name_by_handle | ( | brawcap_handle_t *const | pHandle, |
char *const | friendlyName, | ||
UINT32 *const | pLength | ||
) |
#include <brawcap.h>
Reads out the currently set friendly name of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | friendlyName | Pointer to a buffer which will contain the currently set friendly name, afterwards. This parameter can be NULL. If it is NULL the function will set the required buffer length in pLength and return BRAWCAP_STATUS_ERROR_OVERRUN. |
[in,out] | pLength | Length of the provided buffer. If the specified length is to short, it will be set to the required length and BRAWCAP_STATUS_ERROR_OVERRUN is returned. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_OVERRUN | Given buffer length was to short. |
brawcap_status_t brawcap_adapter_description | ( | const brawcap_adapter_name_t | name, |
char *const | description, | ||
UINT32 *const | pLength | ||
) |
#include <brawcap.h>
Reads out the description of the specified adapter.
[in] | name | Name of the adapter. |
[out] | description | Pointer to a buffer which will contain the description, afterwards. This parameter can be NULL. If it is NULL the function will set the required buffer length in pLength and return BRAWCAP_STATUS_ERROR_OVERRUN. |
[in,out] | pLength | Length of the provided buffer. If the specified length is to short, it will be set to the required length and BRAWCAP_STATUS_ERROR_OVERRUN is returned. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
BRAWCAP_STATUS_ERROR_OVERRUN | Given buffer length was to short. |
brawcap_status_t brawcap_adapter_description_by_handle | ( | brawcap_handle_t *const | pHandle, |
char *const | description, | ||
UINT32 *const | pLength | ||
) |
#include <brawcap.h>
Reads out the description of a network adapter based on the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | description | Pointer to a buffer which will contain the description, afterwards. This parameter can be NULL. If it is NULL the required buffer length will be set for pLength and the function will return BRAWCAP_STATUS_ERROR_OVERRUN. |
[in,out] | pLength | Length of the provided buffer. If the specified length is to short, it will be set to the required length and BRAWCAP_STATUS_ERROR_OVERRUN is returned. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_OVERRUN | Given buffer length was to short. |
brawcap_status_t brawcap_adapter_ipv4 | ( | const brawcap_adapter_name_t | name, |
brawcap_adapter_ipv4_t *const | pIpv4 | ||
) |
#include <brawcap.h>
Reads out the currently set IPv4 address of the specified adapter.
[in] | name | Name of the adapter. |
[out] | pIpv4 | Will contain the currently set IPv4 address, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
brawcap_status_t brawcap_adapter_ipv4_by_handle | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_ipv4_t *const | pIpv4 | ||
) |
#include <brawcap.h>
Reads out the currently set IPv4 address of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | pIpv4 | Will contain the currently set IPv4 address, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
brawcap_status_t brawcap_adapter_ipv6 | ( | const brawcap_adapter_name_t | name, |
brawcap_adapter_ipv6_t *const | pIpv6 | ||
) |
#include <brawcap.h>
Reads out the currently set IPv6 address of the specified adapter.
[in] | name | Name of the adapter. |
[out] | pIpv6 | Will contain the currently set IPv6 address, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
brawcap_status_t brawcap_adapter_ipv6_by_handle | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_ipv6_t *const | pIpv6 | ||
) |
#include <brawcap.h>
Reads out the currently set IPv6 address of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | pIpv6 | Will contain the currently set IPv6 address, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
brawcap_status_t brawcap_adapter_mac | ( | const brawcap_adapter_name_t | name, |
brawcap_adapter_mac_t | mac | ||
) |
#include <brawcap.h>
Reads out the MAC address of the specified adapter.
[in] | name | Name of the adapter. |
[out] | mac | Will contain the MAC address, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
brawcap_status_t brawcap_adapter_mac_by_handle | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_mac_t | mac | ||
) |
#include <brawcap.h>
Reads out the MAC address of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | mac | Will contain the MAC address, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
brawcap_status_t brawcap_adapter_speed_rx | ( | const brawcap_adapter_name_t | name, |
brawcap_adapter_speed_t *const | pSpeed | ||
) |
#include <brawcap.h>
Reads out the current receive speed of the specified adapter.
[in] | name | Name of the adapter. |
[out] | pSpeed | Will contain the current receive speed, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
brawcap_status_t brawcap_adapter_speed_rx_by_handle | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_speed_t *const | pSpeed | ||
) |
#include <brawcap.h>
Reads out the current receive speed of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | pSpeed | Will contain the current receive speed, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
brawcap_status_t brawcap_adapter_speed_tx | ( | const brawcap_adapter_name_t | name, |
brawcap_adapter_speed_t *const | pSpeed | ||
) |
#include <brawcap.h>
Reads out the current transmit speed of the specified adapter.
[in] | name | Name of the adapter. |
[out] | pSpeed | Will contain the current transmit speed, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
brawcap_status_t brawcap_adapter_speed_tx_by_handle | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_speed_t *const | pSpeed | ||
) |
#include <brawcap.h>
Reads out the current transmit speed of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | pSpeed | Will contain the current transmit speed, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
brawcap_status_t brawcap_adapter_connection | ( | const brawcap_adapter_name_t | name, |
brawcap_adapter_connection_state_t *const | pConnection | ||
) |
#include <brawcap.h>
Reads out the current connection state of the specified adapter.
[in] | name | Name of the adapter. |
[out] | pConnection | Will contain the current connection state, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
brawcap_status_t brawcap_adapter_connection_by_handle | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_connection_state_t *const | pConnection | ||
) |
#include <brawcap.h>
Reads out the current connection state of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | pConnection | Will contain the current connection state, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
brawcap_status_t brawcap_adapter_operation | ( | const brawcap_adapter_name_t | name, |
brawcap_adapter_operation_state_t *const | pOperation | ||
) |
#include <brawcap.h>
Reads out the current operation state of the specified adapter.
[in] | name | Name of the adapter. |
[out] | pOperation | Will contain the current operation state, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
brawcap_status_t brawcap_adapter_operation_by_handle | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_operation_state_t *const | pOperation | ||
) |
#include <brawcap.h>
Reads out the current operation state of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | pOperation | Will contain the current operation state, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
brawcap_status_t brawcap_adapter_mtu | ( | const brawcap_adapter_name_t | name, |
brawcap_adapter_mtu_t *const | pMtu | ||
) |
#include <brawcap.h>
Reads out the configured MTU of the specified adapter.
[in] | name | Name of the adapter. |
[out] | pMtu | Will contain the configured MTU, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |
BRAWCAP_STATUS_ERROR_NOT_FOUND | Adapter name not found/not available. |
brawcap_status_t brawcap_adapter_mtu_by_handle | ( | brawcap_handle_t *const | pHandle, |
brawcap_adapter_mtu_t *const | pMtu | ||
) |
#include <brawcap.h>
Reads out the configured MTU of the specified adapter.
[in] | pHandle | The bRAWcap handle to read from. |
[out] | pMtu | Will contain the configured MTU, afterwards. |
Status | Description |
---|---|
BRAWCAP_STATUS_SUCCESS | Success. |
BRAWCAP_STATUS_ERROR_INVALID_POINTER | At least one of the given pointer parameters was invalid. |
BRAWCAP_STATUS_ERROR_NOT_AVAILABLE | Not available in demo mode (no license). |