Classes | |
| class | BinaryNinja::DownloadInstance |
| struct | BinaryNinja::DownloadInstance::Response |
| class | BinaryNinja::DownloadProvider |
| class BinaryNinja::DownloadInstance |
Public Member Functions | |
| int | PerformRequest (const std::string &url, BNDownloadInstanceOutputCallbacks *callbacks) |
| Send a GET request to a url, synchronously. | |
| int | PerformCustomRequest (const std::string &method, const std::string &url, const std::unordered_map< std::string, std::string > &headers, Response &response, BNDownloadInstanceInputOutputCallbacks *callbacks) |
| Send a request to a url, synchronously. | |
| std::string | GetError () const |
| Retrieve the error from the last request sent by this instance. | |
Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNDownloadInstance, BNNewDownloadInstanceReference, BNFreeDownloadInstance > | |
| CoreRefCountObject () | |
| virtual | ~CoreRefCountObject () |
| BNDownloadInstance * | GetObject () const |
| void | AddRef () |
| void | Release () |
| void | AddRefForRegistration () |
| void | ReleaseForRegistration () |
| void | AddRefForCallback () |
| void | ReleaseForCallback () |
Protected Member Functions | |
| DownloadInstance (DownloadProvider *provider) | |
| DownloadInstance (BNDownloadInstance *instance) | |
| virtual void | DestroyInstance () |
| Cleanup any resources created by the instance. | |
| virtual int | PerformRequest (const std::string &url)=0 |
| Virtual method to synchronously perform a GET request to a url, overridden by a subclass. | |
| virtual int | PerformCustomRequest (const std::string &method, const std::string &url, const std::unordered_map< std::string, std::string > &headers, Response &response)=0 |
| Virtual method to synchronously perform a request to a url, overridden by a subclass. | |
| int64_t | ReadDataCallback (uint8_t *data, uint64_t len) |
| uint64_t | WriteDataCallback (uint8_t *data, uint64_t len) |
| bool | NotifyProgressCallback (uint64_t progress, uint64_t total) |
| void | SetError (const std::string &error) |
Static Protected Member Functions | |
| static void | DestroyInstanceCallback (void *ctxt) |
| static int | PerformRequestCallback (void *ctxt, const char *url) |
| static int | PerformCustomRequestCallback (void *ctxt, const char *method, const char *url, uint64_t headerCount, const char *const *headerKeys, const char *const *headerValues, BNDownloadInstanceResponse **response) |
| static void | PerformFreeResponse (void *ctxt, BNDownloadInstanceResponse *response) |
Additional Inherited Members | |
Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNDownloadInstance, BNNewDownloadInstanceReference, BNFreeDownloadInstance > | |
| static BNDownloadInstance * | GetObject (CoreRefCountObject *obj) |
| static BNDownloadInstance * | GetObject (const CoreRefCountObject *obj) |
Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNDownloadInstance, BNNewDownloadInstanceReference, BNFreeDownloadInstance > | |
| std::atomic< int > | m_refs |
| bool | m_registeredRef |
| BNDownloadInstance * | m_object |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protectedvirtual |
Cleanup any resources created by the instance.
|
protectedpure virtual |
Virtual method to synchronously perform a GET request to a url, overridden by a subclass.
| url | Full url to request |
Implemented in BinaryNinja::CoreDownloadInstance.
|
protectedpure virtual |
Virtual method to synchronously perform a request to a url, overridden by a subclass.
| method | Request method e.g. GET |
| url | Full url to request |
| headers | HTTP headers as keys/values |
| response | Structure into which the response status code and headers should be stored |
Implemented in BinaryNinja::CoreDownloadInstance.
|
protected |
|
protected |
|
protected |
|
protected |
| int BinaryNinja::DownloadInstance::PerformRequest | ( | const std::string & | url, |
| BNDownloadInstanceOutputCallbacks * | callbacks ) |
Send a GET request to a url, synchronously.
| url | Full url to request |
| callbacks | Structure with callback functions for output data |
| int BinaryNinja::DownloadInstance::PerformCustomRequest | ( | const std::string & | method, |
| const std::string & | url, | ||
| const std::unordered_map< std::string, std::string > & | headers, | ||
| Response & | response, | ||
| BNDownloadInstanceInputOutputCallbacks * | callbacks ) |
Send a request to a url, synchronously.
| method | Request method e.g. GET |
| url | Full url to request |
| headers | HTTP headers as keys/values |
| response | Structure into which the response status code and headers are stored |
| callbacks | Structure with callback functions for input and output data |
| string DownloadInstance::GetError | ( | ) | const |
Retrieve the error from the last request sent by this instance.
| struct BinaryNinja::DownloadInstance::Response |
| class BinaryNinja::DownloadProvider |
Public Member Functions | |
| virtual Ref< DownloadInstance > | CreateNewInstance ()=0 |
Public Member Functions inherited from BinaryNinja::StaticCoreRefCountObject< BNDownloadProvider > | |
| StaticCoreRefCountObject () | |
| virtual | ~StaticCoreRefCountObject () |
| BNDownloadProvider * | GetObject () const |
| void | AddRef () |
| void | Release () |
| void | AddRefForRegistration () |
| void | AddRefForCallback () |
| void | ReleaseForCallback () |
Static Public Member Functions | |
| static std::vector< Ref< DownloadProvider > > | GetList () |
| static Ref< DownloadProvider > | GetByName (const std::string &name) |
| static void | Register (DownloadProvider *provider) |
Static Public Member Functions inherited from BinaryNinja::StaticCoreRefCountObject< BNDownloadProvider > | |
| static BNDownloadProvider * | GetObject (const StaticCoreRefCountObject *obj) |
Protected Member Functions | |
| DownloadProvider (const std::string &name) | |
| DownloadProvider (BNDownloadProvider *provider) | |
Static Protected Member Functions | |
| static BNDownloadInstance * | CreateInstanceCallback (void *ctxt) |
Additional Inherited Members | |
Public Attributes inherited from BinaryNinja::StaticCoreRefCountObject< BNDownloadProvider > | |
| std::atomic< int > | m_refs |
| BNDownloadProvider * | m_object |
|
protected |
|
protected |
|
staticprotected |
|
pure virtual |
Implemented in BinaryNinja::CoreDownloadProvider.
|
static |
|
static |
|
static |