mirror of
https://git.jami.net/savoirfairelinux/jami-docs.git
synced 2025-07-03 04:20:26 +08:00
Update File transfer
This commit is contained in:
@ -59,10 +59,6 @@ The first part will be a small header to describe the content of the file. Then,
|
|||||||
|
|
||||||
##### Sending a file
|
##### Sending a file
|
||||||
|
|
||||||
**TODO**
|
|
||||||
|
|
||||||
##### Receiving a file
|
|
||||||
|
|
||||||
The following method is used:
|
The following method is used:
|
||||||
|
|
||||||
1\. A client will call `DataTransferFacade::sendFile()`. `DataTransferFacade` is the class corresponding to the API exposed for the clients. It is used to manage a view of the file transfers (the corresponding classes are `DataTransfer`, `IncomingFileTransfer`, `OutgoingFileTransfer` and `SubOutgoingFileTransfer`). This method will ask the linked `JamiAccount` to request a connection.
|
1\. A client will call `DataTransferFacade::sendFile()`. `DataTransferFacade` is the class corresponding to the API exposed for the clients. It is used to manage a view of the file transfers (the corresponding classes are `DataTransfer`, `IncomingFileTransfer`, `OutgoingFileTransfer` and `SubOutgoingFileTransfer`). This method will ask the linked `JamiAccount` to request a connection.
|
||||||
@ -81,6 +77,10 @@ The following method is used:
|
|||||||
|
|
||||||
7\. If a cancel is received from the peer or the client or if the file transfer finish, the connection will be closed via a `CANCEL` message on the `DhtPeerConnector::eventLoop()` and the resources will be released.
|
7\. If a cancel is received from the peer or the client or if the file transfer finish, the connection will be closed via a `CANCEL` message on the `DhtPeerConnector::eventLoop()` and the resources will be released.
|
||||||
|
|
||||||
|
##### Receiving a file
|
||||||
|
|
||||||
|
**TODO**
|
||||||
|
|
||||||
##### Schema
|
##### Schema
|
||||||
|
|
||||||
**TODO**
|
**TODO**
|
||||||
|
Reference in New Issue
Block a user