Created
April 7, 2020 04:45
-
-
Save yuta0801/75102e70d090b87d2cf769cdd5d231bf to your computer and use it in GitHub Desktop.
Piping Server上でP2P通信をするときの流れ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml p2p | |
group クライアント数だけ繰り返す | |
Uploader -> Server : /:randomにtokenを生成してPOST | |
Uploader --> Downloader : /:randomを教える | |
Downloader -> Server : /:randomをGETし:tokenを取得 | |
group ファイル数分繰り返す | |
Uploader -> Server : /:random/:tokenをGET | |
Downloader -> Server : /:random/:tokenに欲しいfileをPOST | |
Downloader -> Server : /:random/:token/:fileをGET | |
Uploader -> Server : /:random/:token/:fileに供給されたfileをPOST | |
end | |
end | |
@enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment