{"id":22325143,"url":"https://github.com/rogercoll/basic-p2p","last_synced_at":"2025-03-26T05:44:05.477Z","repository":{"id":113985637,"uuid":"256007336","full_name":"rogercoll/basic-p2p","owner":"rogercoll","description":"Basic p2p connection over TCP where peers exchange a version(of whatever) message to check their compatibility","archived":false,"fork":false,"pushed_at":"2020-04-21T17:17:44.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T14:52:47.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/rogercoll.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":"2020-04-15T18:45:40.000Z","updated_at":"2020-04-21T17:17:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"f451bd3a-59ca-4b13-bcdd-82c04a36be11","html_url":"https://github.com/rogercoll/basic-p2p","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogercoll%2Fbasic-p2p","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogercoll%2Fbasic-p2p/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogercoll%2Fbasic-p2p/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogercoll%2Fbasic-p2p/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogercoll","download_url":"https://codeload.github.com/rogercoll/basic-p2p/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245598310,"owners_count":20641884,"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","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-12-04T02:10:24.787Z","updated_at":"2025-03-26T05:44:05.454Z","avatar_url":"https://github.com/rogercoll.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic p2p\n\nBasic golang code to establish a TCP connection and exchange information\n\nExample of the struct that is shared:\n\n```go\ntype Version struct {\n\tversion\t        uint32\n\ttimestamp\tuint64\n\taddr_recv\t[4]uint8 \n\taddr_recv_port  uint16\t\n\taddr_trans\t[4]uint8\n\taddr_trans_port uint16\n}\n```\n\nAll is encoden in Little Endian order. \n\n## Run\n\n```sh\n//Launch the server\ngo run main.go\n\n\n//Create a client\ngo test pkg/client/client_test.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogercoll%2Fbasic-p2p","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogercoll%2Fbasic-p2p","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogercoll%2Fbasic-p2p/lists"}