LInet::GetHostName

#include "ltwrappr.h"

L_CHAR * LInet::GetHostName(nType=HOST_NAME_DESC)

L_INT nType;

/* type of name to retrieve */

Gets either the descriptive name (URL) or the IP address of a remote computer.

Parameter

Description

nType

Value indicating the type of name to retrieve. Possible values include:

 

Value

Meaning

 

HOST_NAME_DESCRP

Descriptive name of remote computer

 

HOST_NAME_IP

IP address of remote computer

Returns

!NULL

Pointer to a character string that contains the host.

NULL

An error occurred.

Comments

You must initialize the LEADTOOLS Peer-to-Peer DLL using LInet::StartUp before calling this function.

Required DLLs and Libraries

LTNET

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LInet::Connect, LInet::ServerInit, LInet::Close, LInet::StartUp, LInet::ShutDown, Class Members

Example

For an example, refer to LInet::Connect.