Net_Write; Netbuf_Buf2Sd - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Parameters
is the platform-independent socket descriptor.
SYS_NETFD sd
is the buffer to receive the bytes.
char *buf
is the maximum number of bytes to read.
int sz
is the number of seconds to allow for the read operation before
int timeout
returning. The purpose of
read in the given time, but to limit the amount of time devoted to waiting until
some data arrives.
See also

net_write

net_write
The
function writes a specified number of bytes to a specified socket
net_write
from a specified buffer. It returns the number of bytes written.
Syntax
int net_write(SYS_NETFD sd, char *buf, int sz);
Returns
The number of bytes written, which may be less than the requested size if an error
occurred.
Parameters
is the platform-independent socket descriptor.
SYS_NETFD sd
is the buffer containing the bytes.
char *buf
is the number of bytes to write.
int sz
Example
if (net_write(sn->csd, FIRSTMSG, strlen(FIRSTMSG)) == IO_ERROR)
return REQ_EXIT;
See also
net_read

netbuf_buf2sd

The
netbuf_buf2sd
to send data from IPC pipes to the client.
is not to return because not enough bytes were
timeout
function sends a buffer to a socket. You can use this function
NSAPI Functions (in Alphabetical Order)
Chapter 5
NSAPI Function Reference
155

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents