void Ns_PdSendData(char *data, int len);
This function sends data of length len to the client. You indicate that you are finished sending data to the client by calling this function with END_DATA.
Ns_PdSendString(OK_STATUS); if (status == DB_END_DATA) { Ns_PdSendData(END_DATA, strlen(END_DATA)); }