MySQL 8.0 Release Notes
MySQL 8.0 Source Code Documentation
The MySQL client/server protocol includes a client interface for
reading a stream of replication events from a MySQL server binary
log. This capability uses the MYSQL_RPL
data
structure and a small set of functions to manage communication
between a client program and the server from which the binary log
is to be read. The following sections describe aspects of this
interface in more detail.