FileTransferEntry¶
-
template<typename
OutputSessionClass
>
classkanzi::connect
::
FileTransferEntry
¶ Can handle transferring a file in blocks over connection adapter.
Public Functions
-
FileTransferEntry
(const string &uri, vector<char> &buffer, unsigned int handle, weak_ptr<OutputSessionClass> session, unsigned int blockSize, unsigned int timeout_ms)¶ Constructor.
- Parameters
uri
: Identifies the filebuffer
: Contains the data to sendhandle
: Identifies the file transfer when there are multiple blocks being sentsession
: Implements the actual output used to sendblockSize
: How big is one single block that is transferred on one gotimeout_ms
: The server will inform the client how long to wait for the entire transaction to complete
-
~FileTransferEntry
()¶ dtor
-
bool
done
() const¶ Has the transfer finished.
- Return
True if yes
-
unsigned int
handle
() const¶ Get the identification handle of this transfer.
- Return
the handle
Do the given arguments match this transfer.
- Parameters
uri
: Identify the filesession
: The session which does the transfer
-
void
progress
()¶ Progress the transfer by sending one block.
-