{"id":21565083,"url":"https://github.com/mrrodrigo/p2p-java","last_synced_at":"2025-08-19T06:35:03.960Z","repository":{"id":67795575,"uuid":"208383903","full_name":"mrRodrigo/P2P-Java","owner":"mrRodrigo","description":" This repository consists of the implementation of a basic P2P system, which it must be organized as a centralized architecture.","archived":false,"fork":false,"pushed_at":"2019-09-28T02:32:48.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T05:17:20.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrRodrigo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-14T03:35:03.000Z","updated_at":"2019-09-28T02:32:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c748f98-ecde-4589-8cc2-d36fae63ce49","html_url":"https://github.com/mrRodrigo/P2P-Java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrRodrigo/P2P-Java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrRodrigo%2FP2P-Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrRodrigo%2FP2P-Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrRodrigo%2FP2P-Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrRodrigo%2FP2P-Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrRodrigo","download_url":"https://codeload.github.com/mrRodrigo/P2P-Java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrRodrigo%2FP2P-Java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271113507,"owners_count":24701609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T10:18:19.157Z","updated_at":"2025-08-19T06:35:03.931Z","avatar_url":"https://github.com/mrRodrigo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# P2P-Java\n\nClient \n\n```java AppClient 127.0.0.1 client01 127.0.0.1 \"./share\" ```\n\nServer\n\n```  rm -rf *.class \u0026\u0026 javac *.java \u0026\u0026 java AppServer 127.0.0.1 ```\n\nou\n\n```  java AppServer 127.0.0.1 ```\n\n## Requisitos\n\n- Os peers devem se registrar no servidor para poderem realizar a troca de\ninformações.\n- Durante o registro, um peer informa os recursos disponíveis (use um\ndiretório com alguns arquivos, e calcule a hash de cada um, a ser passada\nao servidor). Para cada arquivo, forneça ao servidor uma string ou o nome\ndo arquivo e sua hash.\n- O servidor associa cada recurso em uma lista, juntamente com o IP do\npeer onde está o recurso.\n- Os peers podem solicitar uma lista de recursos (nomes e hashes) ou um\nrecurso específico ao servidor.\n- Ao solicitar um recurso ao servidor, o peer recebe a informação sobre sua\nlocalização (outro peer) e deve então realizar essa comunicação\ndiretamente com o mesmo.\n- O servidor é responsável por manter a estrutura da rede de overlay. Para\nisso os peers devem realizar solicitações periódicas ao servidor (a cada 5\nsegundos). Caso um peer não envie 2 solicitações seguidas a um servidor,\no mesmo é removido da lista.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrodrigo%2Fp2p-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrrodrigo%2Fp2p-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrodrigo%2Fp2p-java/lists"}