{"id":21223869,"url":"https://github.com/sandeepsukhani/devp2p-example","last_synced_at":"2025-07-10T14:31:01.113Z","repository":{"id":41880581,"uuid":"133701117","full_name":"sandeepsukhani/devp2p-example","owner":"sandeepsukhani","description":"Go program to connect two machines using devp2p, a p2p protocol by Ethereum","archived":false,"fork":false,"pushed_at":"2018-05-17T03:41:40.000Z","size":2414,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-03-22T04:16:19.549Z","etag":null,"topics":["devp2p","golang"],"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/sandeepsukhani.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}},"created_at":"2018-05-16T17:24:49.000Z","updated_at":"2023-02-20T21:02:16.000Z","dependencies_parsed_at":"2022-08-29T11:00:33.631Z","dependency_job_id":null,"html_url":"https://github.com/sandeepsukhani/devp2p-example","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandeepsukhani%2Fdevp2p-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandeepsukhani%2Fdevp2p-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandeepsukhani%2Fdevp2p-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandeepsukhani%2Fdevp2p-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandeepsukhani","download_url":"https://codeload.github.com/sandeepsukhani/devp2p-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225640555,"owners_count":17500980,"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":["devp2p","golang"],"created_at":"2024-11-20T22:53:43.521Z","updated_at":"2024-11-20T22:53:44.084Z","avatar_url":"https://github.com/sandeepsukhani.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About:\n\nA sample Go program to connect two machines using devp2p.\nA p2p protocol is defined which sends and receives a message between connected peers.\n\nProgram supports 2 optional arguments:\n\n--port: This is used for changing default 30301 port to some other port, where the server listens.\n\n--connect-to: This is used for connecting to a server for communicating. If this is not given, server runs forever and keeps accepting connection requests otherwise server stops after sending and receiving message from connected peer.\n\n**How to build:**\n\n* go build\n\n**How to start peer-1:**\n\n* ./devp2p-sample\n\n* Get printed enode url, to be used for connecting with second peer. Replace '[::]' after @ with ip of the machine, which is reachable from second peer.\n\n**How to start peer-2:**\n\n* ./devp2p-sample --connect-to [copied-enode-url-with-ip]\n\n\nThis can be run on same or different machine. For running on same machine, both the servers needs to run on different ports.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandeepsukhani%2Fdevp2p-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandeepsukhani%2Fdevp2p-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandeepsukhani%2Fdevp2p-example/lists"}