#include <common.h>
Detailed Description
Connection class Convenience wrapper around MYSQL_PLUGIN_VIO object providing basic read/write operations.
Definition at line 214 of file common.h.
Constructor & Destructor Documentation
Connection class Create connection out of an active MYSQL_PLUGIN_VIO object.
- Parameters
-
[in] | vio | pointer to a MYSQL_PLUGIN_VIO object used for connection - it can not be NULL |
Definition at line 53 of file common.cc.
Member Function Documentation
Blob Connection::read |
( |
| ) |
|
Read data from connection.
- Returns
- A Blob containing read packet or null Blob in case of error.
- Note
- In case of error, VIO error code is stored in the connection object and can be obtained with
error()
method.
Definition at line 92 of file common.cc.
int Connection::write |
( |
const Blob & |
blob | ) |
|
Write data to the connection.
- Parameters
-
[in] | blob | data to be written |
- Returns
- 0 on success, VIO error code on failure.
- Note
- In case of error, VIO error code is stored in the connection object and can be obtained with
error()
method.
Definition at line 70 of file common.cc.
The documentation for this class was generated from the following files: