Net_Ip2Host; Net_Read - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
N

net_ip2host

The
domain name and returns it.
NOTE
Syntax
char *net_ip2host(char *ip, int verify);
Returns
A new string containing the fully-qualified domain name, if the transformation
was accomplished or NULL if the transformation was not accomplished.
Parameters
char *ip
dotted-decimal notation:
int verify
fully-qualified domain name. Though this requires an extra query, you should use
it when checking access control.

net_read

The
The function waits to receive data from the socket until either at least one byte is
available in the socket or the specified time has elapsed.
Syntax
int net_read (SYS_NETFD sd, char *buf, int sz, int timeout);
Returns
The number of bytes read, which will not exceed the maximum size,
value is returned if an error has occurred, in which case
ETIMEDOUT
150
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
function transforms a textual IP address into a fully-qualified
net_ip2host
This function works only if the
magnus.conf
and Use of magnus.conf."
is the IP (Internet Protocol) address as a character string in
nnn
, if non-zero, specifies that the function should verify the
function reads bytes from a specified socket into a specified buffer.
net_read
if the operation did not complete before
DNS
file. For more information, see Chapter 7, "Syntax
.
.
.
nnn
nnn
nnn
directive is enabled in the
sz
is set to the constant
errno
seconds elapsed.
timeout
. A negative

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents