nlGetPortFromAddr, nlSetAddrPort

get or set the port number for an address

C Specification

NLushort nlGetPortFromAddr(const NLaddress * address)

NLboolean nlSetAddrPort(NLaddress * address, NLushort port)

Parameters

address

[in]Specifies a pointer to the address.

port

[in]Specifies a port number.

Description

nlGetPortFromAddr and nlSetAddrPort get or set the port number for an address.

Return values

nlGetPortFromAddr returns the port number from address. If the port number is '0', an error may have occured, and the specific error code can be retrieved by calling nlGetError

nlSetAddrPort returns NL_TRUE if no error occurs, otherwise it returns NL_FALSE, and the specific error code can be retrieved by calling nlGetError

Error codes

NL_NULL_POINTER : A NULL pointer was passed to this function.

See also

nlGetLocalAddr,
nlGetRemoteAddr,
nlConnect


Back to the HawkNL index page


Go directly to the main HawkNL page at Hawk Software

© 2000-2002 Phil Frisbie.

Valid XHTML 1.0!