Memory capture functions.
More...
Memory capture functions.
◆ ProfisharkAPINetworkDataFormat
Output file format.
Enumerator |
---|
ProfisharkAPINetworkDataFormat_PcapNG | Pcap-ng
|
◆ ProfisharkAPIMemoryCaptureGet()
Get network data.
- Parameters
-
| 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. |
- Return values
-
ProfisharkAPIRet_Success | on success |
ProfisharkAPIRet_NoDev | if the device does not exist |
ProfisharkAPIRet_TooSmall | if the buffer is too small |
◆ ProfisharkAPIMemoryCaptureGetHeader()
Get the file header corresponding to the requested format.
- Parameters
-
| 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. |
- Return values
-
ProfisharkAPIRet_Success | on success |
ProfisharkAPIRet_NoDev | if the device does not exist |
ProfisharkAPIRet_TooSmall | if the buffer is too small |
◆ ProfisharkAPIMemoryCaptureStart()
Start memory capture.
- Parameters
-
- Return values
-
ProfisharkAPIRet_Success | on success |
ProfisharkAPIRet_NoDev | if the device does not exist |
◆ ProfisharkAPIMemoryCaptureStop()
Stop memory capture.
- Parameters
-
handle | a handle to the device |
- Return values
-
ProfisharkAPIRet_Success | on success |
ProfisharkAPIRet_NoDev | if the device does not exist |