Consultor Eletrônico



Kbase 21340: How Progress resolves device name in the _Connect VST?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Unverified

GOAL:

How Progress resolves device name in the _Connect VST?

GOAL:

_Connect Virtual System Table device resolution

FIX:

The _connect-device name is populated by a string passed from the Client machine to the Server in the "login message". The Client uses the "gethostname()" function to retrieve a string with the host's name. Based on the Windows socket provider, this will either return the host name alone or a fully qualified name (for example, host.sub-domain.top-domain).

This segment from the MSDN documentation on the "gethostname()" offers further insights:

"The gethostname function returns the name of the local host into the buffer specified by the name parameter. The host name is returned as a null-terminated string. The form of the host name is dependent on the Windows Sockets provider -- it can be a simple host name, or it can be a fully qualified domain name."

NOTE: What is returned from the socket provider for the host name may vary. A problem arises where there are two disparate lengths to deal with inside the database client -- a maximum host name length of 32 bytes and the login device name with its maximum length of 60 bytes. If for any reason the 32-byte maximum host name is exceeded, Progress will send a null string.