C API Reference -- Ns_ConnRead

### 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.

#### Examples

        /* Read content from the browser into buf. */
        char buf[1024];

        Ns_ConnRead(conn, buf, sizeof(buf));

Top of Page
Copyright © 1998-99 America Online, Inc.