btsnoop-decoder  1.0
Small library to decode Bluetooth Snoop file used to store radio packet records
BtSnoopParser Class Reference

#include <btsnoopparser.h>

Public Member Functions

 BtSnoopParser ()
 initialize bt snoop file parser More...
 
 ~BtSnoopParser ()
 stop and join thread More...
 
void addSnoopListener (IBtSnoopListener *listener)
 add a listener to monitor streamed packet record More...
 
void clearListeners ()
 remove all listeners in snoop listener list More...
 
bool decode_streaming_file (std::string file_path)
 decode streaming file (non blocking method) More...
 
void join ()
 wait for thread to finish (blocking method) More...
 
void stop ()
 stop and join current thread More...
 

Detailed Description

The MIT License (MIT)

Copyright (c) 2015 Bertrand Martel

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. btsnoopparsert.h

Parse and manage task for streaming bt snoop file

Author
Bertrand Martel
Version
0.1

Constructor & Destructor Documentation

BtSnoopParser::BtSnoopParser ( )

initialize bt snoop file parser

BtSnoopParser::~BtSnoopParser ( )

stop and join thread

stop and join thread

Member Function Documentation

void BtSnoopParser::addSnoopListener ( IBtSnoopListener listener)

add a listener to monitor streamed packet record

Parameters
listener
void BtSnoopParser::clearListeners ( )

remove all listeners in snoop listener list

bool BtSnoopParser::decode_streaming_file ( std::string  file_path)

decode streaming file (non blocking method)

Parameters
file_path
Returns
success status
Parameters
file_pathbtsnoop file path
Returns
success status
void BtSnoopParser::join ( )

wait for thread to finish (blocking method)

void BtSnoopParser::stop ( )

stop and join current thread

wait for thread to finish (blocking method)


The documentation for this class was generated from the following files: