{"id":22197095,"url":"https://github.com/gcarreno/testpeer-to-peer","last_synced_at":"2026-01-27T07:36:29.670Z","repository":{"id":257271971,"uuid":"857776812","full_name":"gcarreno/TestPeer-to-Peer","owner":"gcarreno","description":"A simple class that implements a peer in a Peer-to-Peer network","archived":false,"fork":false,"pushed_at":"2024-09-16T18:50:01.000Z","size":41,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T00:04:32.800Z","etag":null,"topics":["fpc","free-pascal","freepascal","lazarus","p2p","p2p-network","p2p-node","peer-to-peer"],"latest_commit_sha":null,"homepage":"https://github.com/gcarreno/TestStar","language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gcarreno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-09-15T15:30:33.000Z","updated_at":"2025-01-12T18:22:57.000Z","dependencies_parsed_at":"2024-09-15T17:13:40.029Z","dependency_job_id":"fbce1399-27da-43c3-832a-827787663912","html_url":"https://github.com/gcarreno/TestPeer-to-Peer","commit_stats":null,"previous_names":["gcarreno/testpeer-to-peer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gcarreno/TestPeer-to-Peer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarreno%2FTestPeer-to-Peer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarreno%2FTestPeer-to-Peer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarreno%2FTestPeer-to-Peer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarreno%2FTestPeer-to-Peer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcarreno","download_url":"https://codeload.github.com/gcarreno/TestPeer-to-Peer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarreno%2FTestPeer-to-Peer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28808203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:14:39.408Z","status":"ssl_error","status_checked_at":"2026-01-27T07:14:39.098Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fpc","free-pascal","freepascal","lazarus","p2p","p2p-network","p2p-node","peer-to-peer"],"created_at":"2024-12-02T14:18:22.943Z","updated_at":"2026-01-27T07:36:29.654Z","avatar_url":"https://github.com/gcarreno.png","language":"Pascal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test Peer-to-Peer\n\n\u003e **Disclaimer**\n\u003e\n\u003e In the spirit of full disclosure and due to my utter laziness in coming up with the bulk of the boilerplate code, I turned to `ChatGPT`.\\\n\u003e You can see the series of prompts and answers I've got in the [research](research) folder.\n\nThis is an attempt at a very basic peer class that can participate on a Peer-to-Peer( `P2P` ) network.\n\nIt will not have peer discovery via `UDP` broadcast, nor will it have any `DHT` features.\n\nJust a simple message exchange protocol in a `P2P` context.\n\n## Todo\n\n- The `TPeer` class, at the moment, does not need to be a thread\n- Hook up event for data received from connection thread to the internal peer method\n- Add a property to allow hooking to data received from outside of the peer\n- Hook up event for connection removal from connection thread to peer\n- Understand if a connection needs to be disconnected when being removed\n- Implement command line switch `--connect-to`\n- Ponder having a Ping/Pong immediately before a connection is about to timeout","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcarreno%2Ftestpeer-to-peer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcarreno%2Ftestpeer-to-peer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcarreno%2Ftestpeer-to-peer/lists"}