|
static BNWebsocketClient * | GetObject (CoreRefCountObject *obj) |
|
std::atomic< int > | m_refs |
|
bool | m_registeredRef |
|
BNWebsocketClient * | m_object |
|
| WebsocketClient (WebsocketProvider *provider) |
|
| WebsocketClient (BNWebsocketClient *instance) |
|
bool | ReadData (uint8_t *data, uint64_t len) |
|
virtual void | DestroyClient () |
| Cleanup any resources created by the client. More...
|
|
virtual bool | Connect (const std::string &host, const std::unordered_map< std::string, std::string > &headers)=0 |
| Virtual method for performing the connection, overridden by a subclass. More...
|
|
static void | DestroyClientCallback (void *ctxt) |
|
static bool | ConnectCallback (void *ctxt, const char *host, uint64_t headerCount, const char *const *headerKeys, const char *const *headerValues) |
|
static bool | WriteCallback (const uint8_t *data, uint64_t len, void *ctxt) |
|
static bool | DisconnectCallback (void *ctxt) |
|
static void | ErrorCallback (const char *msg, void *ctxt) |
|
◆ CoreWebsocketClient()
CoreWebsocketClient::CoreWebsocketClient |
( |
BNWebsocketClient * |
instance | ) |
|
◆ ~CoreWebsocketClient()
virtual BinaryNinja::CoreWebsocketClient::~CoreWebsocketClient |
( |
| ) |
|
|
inlinevirtual |
◆ Connect()
bool CoreWebsocketClient::Connect |
( |
const std::string & |
host, |
|
|
const std::unordered_map< std::string, std::string > & |
headers |
|
) |
| |
|
overridevirtual |
Virtual method for performing the connection, overridden by a subclass.
- Parameters
-
host | Full url with scheme, domain, optionally port, and path |
headers | HTTP header keys and values |
- Returns
- True if the connection has started, but not necessarily if it succeeded
Implements BinaryNinja::WebsocketClient.
◆ Disconnect()
bool CoreWebsocketClient::Disconnect |
( |
| ) |
|
|
overridevirtual |
◆ Write()
bool CoreWebsocketClient::Write |
( |
const std::vector< uint8_t > & |
data | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: