Sends a NetWare Core Protocol (NCP) request to the specified NetWare server.
#include <client.h> int ncp_send ( int session, int requestCode, int sendFragCount, frag_t sendFrags[], int replyFragCount, frag_t replyFrags[], int *replyFragsUsed );
(IN) Specifies the open NCP session to use for sending the request. You use the ncp_open function to create an open session.
(IN) Specifies the NCP function and subfunction code.
(IN) Specifies the number of fragments in the request array.
(IN) Contains the array of request fragments.
(IN) Specifies the number of fragment buffers available for the response.
(OUT) Contains the array of response fragments.
(OUT) Points to the total number of bytes returned. Can be NULL.
If successful, returns 0. Otherwise returns -1 and sets errno.
ncp_error is set to hold any error returned from the NCP layer detailing more pointedly what may have gove wrong.