MySQL 8.0.30
Source Code Documentation
Channel_info_named_pipe Class Reference

This class abstracts the info. More...

Inheritance diagram for Channel_info_named_pipe:
[legend]

Public Member Functions

 Channel_info_named_pipe (HANDLE handle)
 Constructor that sets the pipe handle. More...
 
virtual THDcreate_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...
 
- Public Member Functions inherited from Channel_info
virtual ~Channel_info ()=default
 
ulonglong get_prior_thr_create_utime () const
 
void set_prior_thr_create_utime ()
 
virtual bool is_admin_connection () const
 

Protected Member Functions

virtual Viocreate_and_init_vio () const
 Create and initialize a Vio object. More...
 
- Protected Member Functions inherited from Channel_info
 Channel_info ()
 

Private Attributes

HANDLE m_handle
 

Detailed Description

This class abstracts the info.

about windows named pipe of communication with server from client.

Constructor & Destructor Documentation

◆ Channel_info_named_pipe()

Channel_info_named_pipe::Channel_info_named_pipe ( HANDLE  handle)
inline

Constructor that sets the pipe handle.

Parameters
handleconnected pipe handle

Member Function Documentation

◆ create_and_init_vio()

virtual Vio * Channel_info_named_pipe::create_and_init_vio ( ) const
inlineprotectedvirtual

Create and initialize a Vio object.

Returns
a pointer to the initialized a vio object.

Implements Channel_info.

◆ create_thd()

virtual THD * Channel_info_named_pipe::create_thd ( )
inlinevirtual

Instantiate and initialize THD object and vio.

Returns
pointer to initialized THD object.
Return values
NULLTHD object allocation fails.

Reimplemented from Channel_info.

◆ send_error_and_close_channel()

virtual void Channel_info_named_pipe::send_error_and_close_channel ( uint  errorcode,
int  error,
bool  senderror 
)
inlinevirtual

Send error back to the client and close the channel.

Parameters
errorcodecode indicating type of error.
erroroperating system specific error code.
senderrortrue if the error need to be sent to client else false.

Reimplemented from Channel_info.

Member Data Documentation

◆ m_handle

HANDLE Channel_info_named_pipe::m_handle
private

The documentation for this class was generated from the following file: