CTexasAPI::Connect

Connect estabilsh a connecting between client and/or server.

unsigned int Connect(
	ServerType type,
	const char16_t *userName,
	const char16_t *password,
	const char16_t *execPath,
	const char16_t *dataPath,
	short language,
	pCallbackRoutine connectionHandler,
	void* objectID
);

unsigned int Connect(
   ServerType type,
   const char16_t *userName,
   const char16_t *password,
   const char16_t *key,
   short language,
   pCallbackRoutine connectionHandler,
   void* objectID,
   const unsigned int* altAddress = NULL,
   int altAddress_l = 0,
   int maximumPacket = 16376
);

Parameters

type The expected server class to connected to.
userName User name used for the connection.
password Reqired.
key If the first four bytes is ".key" then buffer contains the texas key, otherwise the key is the key path directory
execPath For Local connection.
dataPath Database control file For local server connection.
language Used for error messages from the server about the connection.
connectionHandler Used by the server to return infomation about the connection.
objectID Returned to the connectionHandler.
altAddress Alternative texas server addresses.
altAddress_l Length of altAddress buffer.
maximumPacket Default packet size for the connection.

Return Values

If the method succeeds, the return value is zero else see error codes for more details.

Remarks

Example Use
CTexasAPI server();
if(server.Connect(CTexasAPI::TEXAS_DBE,
	TEXT("MyUserName"),(TEXT("MyPassword"),TEXT("C:\\KeyPath"),
	0,NULL,NULL) == NO_ERROR)
   server.Disconnect();
else MessageBox(TEXT("Unable to connect to server"));

Also See

Disconnect
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript