For the complete documentation index, see llms.txt. This page is also available as Markdown.

mysql_net_read_packet

Syntax

#include <mysql.h>

unsigned long mysql_net_read_packet(MYSQL *mysql)

Parameter

Parameter
Description

mysql

A connection handle previously allocated by mysql_init() and connected by mysql_real_connect().

Description

mysql_net_read_packet reads the next protocol packet from the server into the connection's internal network buffer.

Return Value

Returns the length of the received packet.

This function is part of the low level protocol API.

See also

This page is: Copyright © 2026 MariaDB. All rights reserved.

Last updated

Was this helpful?