Client - ODABA client
In order to run client server or local applications at least one client instance is required. In order to support several connections to different servers, each server connection requires a separate client handle. Several clients can be created from within an application. The first client created is considered to be the main client.
Usually, the main client is sufficient and most client constructors or open functions refer to the main client by not passing any parameter. Since it is not transparent to the developer, when a main client has been created, the first client creates in an application client, which passes a configuration file in order to (re)initialize the main client.
In addition, any number of clients can be created in order to connect to different servers from one application. In order to create a new application client, which is usually not the main client, the constructor or open by application type can be called (open(eApplicationType)).
Clients are created implicitly, when creating or opening a data source. When working without referring to a data source, clients need to be opened explicitly. Usually, working without data source is suggested, when database path are fixed and can be defined in the application directly. In order to refer to variable database paths, a data source (DataSource) should be used instead.
mainClient().initialize("config.ini","MyApplication",ConsoleApplication);
Dictionary dict(mainClient,"c:/myProj/proj.dev");
Database db(dict,"c:/myProj/proj.dat",Write);
- 1. Administration - Administration functions
- 2. Access - Client access functions
- 9. Maintenance - Database Maintenance functions
- Client - Constructor
- activateGUIMessages - Activate GUI-Messages
- applicationType - Application type property
- assign - Assign ODABA client handle
- backupDatabase - Database backup
- cacheConnection - Cache connection
- checkDatabase - Check database
- close - Close client handle
- connect - Connect to server
- connected - Is client connected
- connectionId - Connection identifier property
- dataSourceName - Get data source name
- databaseInformation - Display database information
- databaseStatistics - Display database statistics
- dictionaryStatistics - Display dictionary statistics
- disconnect - Disconnect from server
- equals - Compare client handles
- exist - Check database path
- isMainClient - Is client a handle for the main client
- isValid - Is client handle valid
- killClient - Kill client on the server
- loadFile - Load file for update
- open - Open ODABA client
- openDataSource - Open data source
- operator= - Assign ODABA client handle
- packDatabase - Pack database
- receiveFile - Request file from server
- restoreDatabase - Restore database
- sendFile - Send file to server
- sendMessage - Send message to one or all clients
- serverName - Get host name
- serverOption - Get value for server option
- serverPort - Get port number
- setServerOption - Set Server Option
- shutDown - Shut down client
- shutDownServer - Start server shut down
- startPause - Pause Server
- stopPause - Stop pausing server
- use - Assign ODABA client handle
- ~Client - Destructor