{"id":28583664,"url":"https://github.com/sowa705/chasenet2","last_synced_at":"2025-07-30T12:34:01.519Z","repository":{"id":109353704,"uuid":"535158593","full_name":"sowa705/ChaseNet2","owner":"sowa705","description":"Peer to peer networking library written in pure C#","archived":false,"fork":false,"pushed_at":"2025-07-26T15:24:54.000Z","size":1163,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T20:46:16.640Z","etag":null,"topics":["dotnet","networking","p2p","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sowa705.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":"2022-09-11T01:10:45.000Z","updated_at":"2025-07-26T15:24:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f74de974-59a7-49db-a560-a5b61b141b6d","html_url":"https://github.com/sowa705/ChaseNet2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sowa705/ChaseNet2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sowa705%2FChaseNet2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sowa705%2FChaseNet2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sowa705%2FChaseNet2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sowa705%2FChaseNet2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sowa705","download_url":"https://codeload.github.com/sowa705/ChaseNet2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sowa705%2FChaseNet2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267867808,"owners_count":24157356,"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-07-30T02:00:09.044Z","response_time":70,"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":["dotnet","networking","p2p","unity"],"created_at":"2025-06-11T05:10:10.517Z","updated_at":"2025-07-30T12:34:01.510Z","avatar_url":"https://github.com/sowa705.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChaseNet2\nPeer to peer networking library written in pure C#\n\n## Advantages\n\n* Real P2P system\n* Powerful serialization system\n* Custom protocol\n  * Low latency - UDP based\n  * Message acknowledgement and retransmission\n  * Message compression\n  * E2E encryption\n\n## Basic Usage\n\nMost important classes are `ConnectionManager` and `Connection`. ConnectionManager is used to create connections and listen for incoming connections. Connection is a point to point connection between two ConnectionManagers.\n\n```csharp\n// Create a connection manager\nvar connectionManager = new ConnectionManager(); // optionally pass a port number to listen on\nconnectionManager.StartBackgroundThread(); // start a background thread to handle network events\n\n// Create a connection to another connection manager\nvar connection = await connectionManager.CreateConnection(IPEndPoint.Parse(\"127.0.0.1:1234\"));\n\n// Register the message class with the serialization system (Any class that can be serialized with Protobuf-net)\nconnectionManager.Serializer.RegisterType\u003cstring\u003e();\n\n// Send a message\n// (message type, channel ID, message content)\nvar sentMessage = connection.EnqueueMessage(MessageType.Reliable | MessageType.Priority, 1234, \"Hello !\");\n\n// Receive a message\nconnection.IncomingMessages.TryDequeue(out var message)\nswitch (message.Content)\n{\n    case string str:\n        Console.WriteLine($\"Received string: {str}\");\n        break;\n}\n```\n\n## Projects included\n\n* ChaseNet2 - Main library\n* ChaseNet2.SimpleTracker - Simple tracker implementation\n* ChaseNet2.FileTransfer - File transfer demo\n* ChaseNet2.Tests - Unit tests\n\n## TODO\n* More tracker features\n* External key exchange integration\n* Documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsowa705%2Fchasenet2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsowa705%2Fchasenet2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsowa705%2Fchasenet2/lists"}