#include <vsock_connection.h>
|
bool | Connect (unsigned int port, unsigned int cid, std::optional< int > vhost_user) override |
|
virtual | ~VsockConnection () |
|
virtual bool | Connect (unsigned int port, unsigned int cid, std::optional< int > vhost_user_vsock_cid)=0 |
|
virtual void | Disconnect () |
|
std::future< bool > | ConnectAsync (unsigned int port, unsigned int cid, std::optional< int > vhost_user_vsock_cid) |
|
void | SetDisconnectCallback (std::function< void()> callback) |
|
bool | IsConnected_Unguarded () |
|
bool | IsConnected () |
|
bool | DataAvailable () |
|
int32_t | Read () |
|
bool | Read (std::vector< char > &data) |
|
std::vector< char > | Read (size_t size) |
|
std::future< std::vector< char > > | ReadAsync (size_t size) |
|
bool | ReadMessage (std::vector< char > &data) |
|
std::vector< char > | ReadMessage () |
|
std::future< std::vector< char > > | ReadMessageAsync () |
|
Json::Value | ReadJsonMessage () |
|
std::future< Json::Value > | ReadJsonMessageAsync () |
|
bool | Write (int32_t data) |
|
bool | Write (const char *data, unsigned int size) |
|
bool | Write (const std::vector< char > &data) |
|
bool | WriteMessage (const std::string &data) |
|
bool | WriteMessage (const std::vector< char > &data) |
|
bool | WriteMessage (const Json::Value &data) |
|
bool | WriteStrides (const char *data, unsigned int size, unsigned int num_strides, int stride_size) |
|
◆ Connect()
bool cuttlefish::VsockClientConnection::Connect |
( |
unsigned int |
port, |
|
|
unsigned int |
cid, |
|
|
std::optional< int > |
vhost_user |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following files: