[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_ConnRead

Overview

Read content into buffer

Syntax

    int Ns_ConnRead(
    	Ns_Conn *conn,
    	void    *pvBuf,
    	int      iToRead
    );

Description

The Ns_ConnRead function reads iToRead bytes from the connection into pvBuf. Ns_ConnRead returns the status NS_ERROR or the number of bytes read from the connection.

Example

    /* Read content from the browser into buf. */
    char buf[1024];
    
    Ns_ConnRead(conn, buf, sizeof(buf));
    

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.