Drizzled Public API Documentation

Handshake Declarations for Clients

Functions

DRIZZLE_API drizzle_return_t drizzle_handshake_server_read (drizzle_con_st *con)
DRIZZLE_API drizzle_return_t drizzle_handshake_client_write (drizzle_con_st *con)

Detailed Description

These functions are used to send and receive handshake packets for a client. These are only used by low-level clients when the DRIZZLE_CON_RAW_PACKET option is set, so most applications will never need to use these.


Function Documentation

Write client handshake packet to a server.

Parameters:
[in]conConnection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions.
Returns:
Standard drizzle return value.

Definition at line 59 of file handshake.c.

References drizzle_state_loop(), drizzle_state_none(), and drizzle_state_push().

Read handshake packet from the server in a client.

Parameters:
[in]conConnection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions.
Returns:
Standard drizzle return value.

Definition at line 48 of file handshake.c.

References drizzle_state_loop(), drizzle_state_none(), and drizzle_state_push().