SDK Home Glossary Index Left Right Up

Name entry


Section contents


Overview

Defined in

csocket.oxh

Description

This record class is used to contain the results of name queries.


Construction / destruction


NewNameEntry

Usage

this& = NewNameEntry&:

Description

Creates a name entry object and returns a handle to the created object.

Return Value
this& A handle which represents the created name entry
Error Handling

If the object could not be created then an error is generated which should be trapped by an ONERR handler.


DeleteNameEntry

Usage

DeleteNameEntry:(BYREF this&)

Description

Destroys a name entry object.

Arguments
BYREF this& A handle to a name entry. A zero value is written back into the variable

Methods provided


NameEntryAddr

Usage

addr& = NameEntryAddr&:(this&)

Description

Returns a handle to a socket address object.

Arguments
this& A handle to a name entry
Return value
addr& A handle to a socket address

NameEntryFlags

Usage

flags& = NameEntryFlags&:(this&)

Description

Returns the attributes about this name.

Arguments
this& A handle to a name entry
Return value
flags& Attribute about this name.

EAlias& - name is an alias


NameEntryName

Usage

name$ = NameEntryName$:(this&)

Description

Returns the host name in the name entry.

Arguments
this& A handle to a name entry
Return value
name$ A host name. The maximu size is KHostNameMax%
Error Handling

If the name& stringt cannot be created then an error is generated which should be trapped by an ONERR handler.


  SDK Home Glossary Index Left Right Up