[Home] [Documentation] [Download] [Features] [History]
Beagle Logo

Client/Server Interface

The following documents the communication between a BeagleSQL client and the server for each of the client API functions

  • BSQLConnect() - connect to the database backend and authenticate

    This function first issues a connectTCP() to the backend, once the connection is established, the client sends authentification information. For example, to authenticate user beagle on host www.host.com, the client sends a string containing a 10 byte message length (the length of the username), the username, another 10 byte message length (length of the hostname) and the hostname.

    0000000006beagle0000000012www.host.com

    The client then waits for a response up to MAX_ERROR_LENGTH long. The response will either be OK or an error message. MAX_ERROR_LENGTH is defined in berror.h