![]() |
MySQL 8.0.43
Source Code Documentation
|
This abstract base class represents connection channel information about a new connection. More...
#include <channel_info.h>
Public Member Functions | |
| virtual | ~Channel_info ()=default |
| virtual THD * | create_thd () |
| Instantiate and initialize THD object and vio. More... | |
| virtual void | send_error_and_close_channel (uint errorcode, int error, bool senderror) |
| Send error back to the client and close the channel. More... | |
| ulonglong | get_prior_thr_create_utime () const |
| void | set_prior_thr_create_utime () |
| virtual bool | is_admin_connection () const |
Protected Member Functions | |
| virtual Vio * | create_and_init_vio () const =0 |
| Create and initialize a Vio object. More... | |
| Channel_info () | |
Private Attributes | |
| ulonglong | prior_thr_create_utime |
This abstract base class represents connection channel information about a new connection.
Its subclasses encapsulate differences between different connection channel types.
Currently we support local and TCP/IP sockets (all platforms), named pipes and shared memory (Windows only).
|
inlineprotected |
|
virtualdefault |
|
protectedpure virtual |
Create and initialize a Vio object.
Implemented in Channel_info_named_pipe, Channel_info_shared_mem, Channel_info_local_socket, and Channel_info_tcpip_socket.
|
virtual |
Instantiate and initialize THD object and vio.
| NULL | THD object allocation fails. |
Reimplemented in Channel_info_named_pipe, Channel_info_shared_mem, Channel_info_local_socket, and Channel_info_tcpip_socket.
|
inline |
|
inlinevirtual |
Reimplemented in Channel_info_tcpip_socket.
|
virtual |
Send error back to the client and close the channel.
| errorcode | code indicating type of error. |
| error | operating system specific error code. |
| senderror | true if the error need to be sent to client else false. |
Reimplemented in Channel_info_named_pipe, Channel_info_shared_mem, Channel_info_local_socket, and Channel_info_tcpip_socket.
|
inline |
|
private |