|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
    int Ns_ConnCopyToDString(
    Ns_Conn *conn,
    size_t iToCopy,
    Ns_DString *pds
    );
The Ns_ConnCopyToDString function copies iToCopy bytes of data from the connection to the Ns_DString pointed to by pds. Ns_ConnCopyToDString returns a status of NS_OK or NS_ERROR.
See the example for Ns_ConnContentLength.