Profishark API
2.3.12.0
|
Memory capture functions. More...
Data Structures | |
struct | ProfisharkAPIMemoryCaptureConfig |
Macros | |
#define | PROFISHARKAPI_MEMORYCAPTURE_BUFFER_LENGTH (16384*4*8) |
Minimum length of a buffer for memory capture. | |
Enumerations | |
enum | ProfisharkAPINetworkDataFormat { ProfisharkAPINetworkDataFormat_PcapNG } |
Output file format. More... | |
Functions | |
PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIMemoryCaptureStart (ProfisharkApiDeviceHandle handle, ProfisharkAPIMemoryCaptureConfig config) |
Start memory capture. More... | |
PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIMemoryCaptureStop (ProfisharkApiDeviceHandle handle) |
Stop memory capture. More... | |
PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIMemoryCaptureGet (ProfisharkApiDeviceHandle handle, uint8_t *buffer, int &length) |
Get network data. More... | |
PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIMemoryCaptureGetHeader (ProfisharkApiDeviceHandle handle, uint8_t *buffer, int &length) |
Get the file header corresponding to the requested format. More... | |
Memory capture functions.
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureGet | ( | ProfisharkApiDeviceHandle | handle, |
uint8_t * | buffer, | ||
int & | length | ||
) |
Get network data.
handle | a handle to the device | |
[out] | buffer | a buffer to store the data in the requested format. It must be at least PROFISHARKAPI_MEMORYCAPTURE_BUFFER_LENGTH long. |
[in,out] | length | the length of the buffer. It will be filled with the length of the returned data. |
ProfisharkAPIRet_Success | on success |
ProfisharkAPIRet_NoDev | if the device does not exist |
ProfisharkAPIRet_TooSmall | if the buffer is too small |
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureGetHeader | ( | ProfisharkApiDeviceHandle | handle, |
uint8_t * | buffer, | ||
int & | length | ||
) |
Get the file header corresponding to the requested format.
handle | a handle to the device | |
[out] | buffer | a buffer to store the header. It must be at least PROFISHARKAPI_MEMORYCAPTURE_BUFFER_LENGTH long. |
[in,out] | length | the length of the buffer. It will be filled with the length of the returned data. |
ProfisharkAPIRet_Success | on success |
ProfisharkAPIRet_NoDev | if the device does not exist |
ProfisharkAPIRet_TooSmall | if the buffer is too small |
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureStart | ( | ProfisharkApiDeviceHandle | handle, |
ProfisharkAPIMemoryCaptureConfig | config | ||
) |
Start memory capture.
handle | a handle to the device |
config | a ProfisharkAPIMemoryCaptureConfig that contains the memory capture configuration |
ProfisharkAPIRet_Success | on success |
ProfisharkAPIRet_NoDev | if the device does not exist |
PROFISHARKAPI_API ProfisharkAPIRet ProfisharkAPIMemoryCaptureStop | ( | ProfisharkApiDeviceHandle | handle | ) |
Stop memory capture.
handle | a handle to the device |
ProfisharkAPIRet_Success | on success |
ProfisharkAPIRet_NoDev | if the device does not exist |