MySQL 8.4 C API Developer Guide
int mysql_binlog_fetch(MYSQL *mysql, MYSQL_RPL *rpl)
Fetch one event from the replication event stream.
Arguments:
mysql
: The connection handler returned
from mysql_init()
.
rpl
: The replication stream structure.
After a successful call, the size
member indicates the event size, which is 0 for an EOF
event. For a non-EOF event, size
is
greater than 0 and the buffer
member
points to the event contents.