![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
Connection class. More...
#include <common.h>
Public Member Functions | |
| Connection (MYSQL_PLUGIN_VIO *vio) | |
| Connection class.  More... | |
| int | write (const Blob &) | 
| Write data to the connection.  More... | |
| Blob | read () | 
| Read data from connection.  More... | |
| int | error () const | 
Private Attributes | |
| MYSQL_PLUGIN_VIO * | m_vio | 
Pointer to MYSQL_PLUGIN_VIO structure.  More... | |
| int | m_error | 
| If non-zero, indicates that connection is broken.  More... | |
Connection class.
Convenience wrapper around MYSQL_PLUGIN_VIO object providing basic read/write operations.
      
  | 
  explicit | 
Connection class.
Create connection out of an active MYSQL_PLUGIN_VIO object.
| [in] | vio | pointer to a MYSQL_PLUGIN_VIO object used for connection - it can not be nullptr  | 
      
  | 
  inline | 
| Blob Connection::read | ( | ) | 
Read data from connection.
error() method. | int Connection::write | ( | const Blob & | blob | ) | 
Write data to the connection.
| [in] | blob | data to be written | 
error() method. 
      
  | 
  private | 
If non-zero, indicates that connection is broken.
If this has happened because of failed operation, stores non-zero error code from that failure.
      
  | 
  private | 
Pointer to MYSQL_PLUGIN_VIO structure.