com.novell.service.ncpext
Interface NCPExtension
- public interface NCPExtension
Represents an NCP Extension registered on the NetWare server.
An NPCExtension allows you to send requests to and receive replies
from NCP Extensions registered on a NetWare Server. It has one single-
valued attribute with the attribute ID equal to NCPExtensionInfo.
- See Also:
NCPExtensionInfo
Method Summary |
byte[] |
send(byte[] request,
int maxReplyLength)
Sends a request to an NCP Extension. |
send
public byte[] send(byte[] request,
int maxReplyLength)
throws com.novell.service.jncp.NSIException
- Sends a request to an NCP Extension. Request data for the NCP
Extension must be packed into the request byte array. Any return
data will be contained in the return byte array.
A temporary buffer set to the size specified by the maxReplyLength
parameter will be allocated. For performance reasons, specify as small
an amount as you will need. The actual amount returned will be less
than or equal to this number, which must be <= 0xFFFF, because it is
treated as an unsigned short.
- Parameters:
request
- The byte array containing request data.maxReplyLength
- The maximum number of bytes the user wants
returned.- Returns:
- A byte array containing reply data.
- Throws:
- com.novell.service.jncp.NSIException - Standard NJCL exception for working on top
of Xplat libraries.