{"id":37047674,"url":"https://github.com/geloczi/ipc-anonymouspipes","last_synced_at":"2026-01-14T05:35:34.583Z","repository":{"id":40614974,"uuid":"432757466","full_name":"geloczi/ipc-anonymouspipes","owner":"geloczi","description":"Interprocess communication using anonymous pipes","archived":false,"fork":false,"pushed_at":"2023-12-07T21:25:40.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T07:47:30.894Z","etag":null,"topics":["anonymuspipes","interprocess-communication","interprocess-communication-library","ipc","pipes"],"latest_commit_sha":null,"homepage":"","language":"C#","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/geloczi.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}},"created_at":"2021-11-28T15:59:13.000Z","updated_at":"2022-06-27T03:52:06.000Z","dependencies_parsed_at":"2024-12-22T10:51:45.788Z","dependency_job_id":"816c91c8-4929-43a8-b0e7-fb4722cab488","html_url":"https://github.com/geloczi/ipc-anonymouspipes","commit_stats":null,"previous_names":["geloczi/ipc-anonymouspipes","geloczigeri/ipc-anonymouspipes"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/geloczi/ipc-anonymouspipes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geloczi%2Fipc-anonymouspipes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geloczi%2Fipc-anonymouspipes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geloczi%2Fipc-anonymouspipes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geloczi%2Fipc-anonymouspipes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geloczi","download_url":"https://codeload.github.com/geloczi/ipc-anonymouspipes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geloczi%2Fipc-anonymouspipes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28410738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["anonymuspipes","interprocess-communication","interprocess-communication-library","ipc","pipes"],"created_at":"2026-01-14T05:35:34.029Z","updated_at":"2026-01-14T05:35:34.578Z","avatar_url":"https://github.com/geloczi.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IpcAnonymousPipes\nInterprocess communication using anonymus pipes. \nThe goal of this project is to provide a simple framework to send and receive byte arrays over \nanonymus pipes efficiently. You may use a serialization library of your choice on top of this to implement messaging.  \n\n- Targets .NET Standard 2.0\n- Lightweight and easy to use\n- Client-Server architecture\n- One-to-one duplex communication\n- Works with simple byte arrays\n\n\n## Usage\n\n### [NuGet package](https://www.nuget.org/packages/IpcAnonymousPipes/)\n```\nInstall-Package IpcAnonymousPipes\n```\n\n### PipeServer\n\nThe server side PipeServer will create two anonymus pipes: input and output. The handles will be passed to the client app as process arguments.  \n\n```\nvoid StartServer()\n{\n    // Create pipe server\n    Server = new PipeServer();\n    \n    // Start client process with command line arguments\n    Process.Start(\"MyClient.exe\", Server.GetClientArgs());\n    \n    // Receiving on background thread\n    Server.ReceiveAsync(stream =\u003e\n    {\n        Console.WriteLine(Encoding.UTF8.GetString(stream.ReadToEnd()));\n    });\n    \n    // Wait for client connection\n    Server.WaitForClient();\n    \n    // Say Hi to the client\n    Server.Send(Encoding.UTF8.GetBytes(\"Hi!\"));\n}\n```\n\n### PipeClient\n\nThis is a minimal client implementation with a console application.\nThe Client will be disposed when the server sends a disconnect signal to this client.\n\n```\nstatic void Main(string[] args)\n{\n    // Create pipe client\n    // The empty constructor parses command line arguments to get the pipe handles.\n    using (var Client = new PipeClient())\n    {\n        // Receiving on background thread\n        Client.ReceiveAsync(stream =\u003e\n        {\n            Console.WriteLine(Encoding.UTF8.GetString(stream.ReadToEnd()));\n        });\n\n        // Read line from console, press ENTER to send\n        while (Client.IsConnected)\n            Client.Send(Encoding.UTF8.GetBytes(Console.ReadLine()));\n    }\n}\n```\n\n## Example applications\n\nYou can find two **WPF applications** in the [repository](https://github.com/geloczi/ipc-anonymouspipes). \nI wrote them in order to demonstrate the **two-way communication** between the server and the client.  \n\n### [ServerWpfApp](https://github.com/geloczi/ipc-anonymouspipes/tree/main/Examples/ServerWpfApp)\n\nDownload the source and build the solution. Then you can start the \n[ServerWpfApp](https://github.com/geloczi/ipc-anonymouspipes/tree/main/Examples/ServerWpfApp)\nproject.  \nThe ServerWpfApp project **does not reference ClientWpfApp** project, they are completely independent from each other.\nMy goal was to run the client inside a **standalone process**, so it **lives in it's own Application Domain**. \n\n### [ClientWpfApp](https://github.com/geloczi/ipc-anonymouspipes/tree/main/Examples/ClientWpfApp)\n\nThe client\n[ClientWpfApp](https://github.com/geloczi/ipc-anonymouspipes/tree/main/Examples/ClientWpfApp)\nwill be started automatically by ServerWpfApp. \nYou can send messages by typing into the textbox and pressing the *Send* button.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeloczi%2Fipc-anonymouspipes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeloczi%2Fipc-anonymouspipes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeloczi%2Fipc-anonymouspipes/lists"}