From 88a2eaea8dced40c1005b8a94c46aa49a57d4df2 Mon Sep 17 00:00:00 2001 From: Akilan Selvacoumar <31743758+Akilan1999@users.noreply.github.com> Date: Mon, 5 Apr 2021 10:17:40 +0300 Subject: [PATCH] Create Client.md --- docs/Client.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/Client.md diff --git a/docs/Client.md b/docs/Client.md new file mode 100644 index 0000000..6bfa9e2 --- /dev/null +++ b/docs/Client.md @@ -0,0 +1,29 @@ +# Client Module +This module is incharge of communicating with the server and receiving the appropriate information back from the server. +Note: To [read more about the functions](https://pkg.go.dev/git.sr.ht/~akilan1999/p2p-rendering-computation@v0.0.0-20210404191839-6a046babcb02/client) + +## Functions of the Client Module +- [Interact with the Server Api](#functions-of-the-client-module) +- [Decision maker on how the ip table is created or updated](##decision-maker-on-how-the-ip-table-is-created) + + +## Interact with the Server Api +This sections talks about the functionality implemented till now. +- The client can start docker containers using the function StartContainer. +This functions calls the route: +``` +http://:/startcontainer +``` +TODO: Outputs and how it's printed + +## Decision maker on how the IP table is created or updated +- Does a local speedtest to verify and see if the server IP's in the IP table +are pingable. +- Downloads the Servers IP table. +- Tries to ping the servers IP Table addresses. +- If it's pingable then it's added as a new entry in the IP table. +- The following steps occurs in the clients IP table. +- To ensure that the same servers are not being called to update the IP table. There is +a temporary list of IP address which have already been called in relation to updating the +IP table. +- Based on the current implementation there will 3 hops done to update the IP table.