DBSETLHOST

Description

Set the host name in the LOGINREC structure.

Syntax

RETCODE DBSETLHOST(loginrec, hostname)
 
LOGINREC    *loginrec;
char                *hostname;

Parameters

loginrec

A pointer to a LOGINREC structure, which will be passed as an argument to dbopen. You can allocate a LOGINREC structure by calling dblogin.

hostname

The host name that will be sent to the server. It must be a null-terminated character string. The maximum length of the string, not including the null terminator, is 30 characters.

Returns

SUCCEED or FAIL.

Usage

See also

dblogin, dbopen, DBSETLAPP, DBSETLPWD, DBSETLUSER