public interface MPReceiveInitiator
Modifier and Type | Method and Description |
---|---|
MPReceiver |
initiateReceive(java.lang.String fileName,
java.lang.String transferName,
java.lang.String sha256hash,
long expectedByteLen,
java.lang.String senderCallsign)
A new MP download request was received with the given details; the
ReceiveInitiator should set set the system up to receive the MP
and return an MPReceiver that will handle the download.
|
MPReceiver initiateReceive(java.lang.String fileName, java.lang.String transferName, java.lang.String sha256hash, long expectedByteLen, java.lang.String senderCallsign) throws java.io.IOException
fileName
- remote sender's preferred name for the filetransferName
- remote sender's logical name for the transfersha256hash
- sha256 hash of the file, as reported by the senderexpectedByteLen
- length of file, as reported by sender. 0 if
not given by sender.senderCallsign
- callsign of the sending devicejava.io.IOException
- if any error is encountered