{"id":16037882,"url":"https://github.com/joseluisq/goipcc","last_synced_at":"2026-04-28T18:35:53.238Z","repository":{"id":57555882,"uuid":"313621595","full_name":"joseluisq/goipcc","owner":"joseluisq","description":"A simple Unix IPC Socket client for Go. For more flexibility try joseluisq/gonetc instead.","archived":false,"fork":false,"pushed_at":"2021-02-03T10:03:28.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T12:35:57.501Z","etag":null,"topics":["darwin","go-package","golang","ipc-socket","linux","unix-socket"],"latest_commit_sha":null,"homepage":"https://github.com/joseluisq/gonetc","language":"Go","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/joseluisq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-17T13:03:48.000Z","updated_at":"2022-02-06T14:20:05.000Z","dependencies_parsed_at":"2022-09-14T11:01:08.595Z","dependency_job_id":null,"html_url":"https://github.com/joseluisq/goipcc","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/joseluisq/goipcc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgoipcc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgoipcc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgoipcc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgoipcc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joseluisq","download_url":"https://codeload.github.com/joseluisq/goipcc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgoipcc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32394467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: 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":["darwin","go-package","golang","ipc-socket","linux","unix-socket"],"created_at":"2024-10-08T22:21:57.945Z","updated_at":"2026-04-28T18:35:53.222Z","avatar_url":"https://github.com/joseluisq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goipcc [![Build Status](https://travis-ci.com/joseluisq/goipcc.svg?branch=master)](https://travis-ci.com/joseluisq/goipcc) [![codecov](https://codecov.io/gh/joseluisq/goipcc/branch/master/graph/badge.svg)](https://codecov.io/gh/joseluisq/goipcc) [![Go Report Card](https://goreportcard.com/badge/github.com/joseluisq/goipcc)](https://goreportcard.com/report/github.com/joseluisq/goipcc) [![PkgGoDev](https://pkg.go.dev/badge/github.com/joseluisq/goipcc)](https://pkg.go.dev/github.com/joseluisq/goipcc)\n\n\u003e A simple [Unix IPC Socket](https://en.wikipedia.org/wiki/Unix_domain_socket) client for [Go](https://golang.org/pkg/net/).\n\n__NOTE:__ For more flexibility try [joseluisq/gonetc](https://github.com/joseluisq/gonetc) instead.\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"strings\"\n\n    \"github.com/joseluisq/goipcc\"\n)\n\nfunc main() {\n    // Code for example purposes only\n\n    // 1. Create a simple listening Unix socket with echo functionality\n    // using the `socat` tool -\u003e http://www.dest-unreach.org/socat/\n    // Then execute the following commands on your terminal:\n    //  rm -f /tmp/mysocket \u0026\u0026 socat UNIX-LISTEN:/tmp/mysocket,fork exec:'/bin/cat'\n\n    // 2. Now just run this client code example in order to exchange data with current socket.\n    //  go run examples/main.go\n\n    // 2.1 Connect to the listening socket\n    sock := goipcc.New(\"/tmp/mysocket\")\n    err := sock.Connect()\n    if err != nil {\n        log.Fatalln(\"unable to communicate with socket:\", err)\n    }\n\n    // 2.2 Send some sequential data to current socket (example only)\n    pangram := strings.Split(\"The quick brown fox jumps over the lazy dog\", \" \")\n    for _, word := range pangram {\n        log.Println(\"client data sent:\", word)\n        _, err := sock.Write([]byte(word), func(resp []byte, err error, done func()) {\n            log.Println(\"client data received:\", string(resp))\n            // Finish the current write handling response if we are done\n            done()\n        })\n        if err != nil {\n            log.Fatalln(\"unable to write to socket:\", err)\n        }\n    }\n\n    sock.Close()\n\n    // 3. Finally after running the client you'll see a similar output like:\n    //\n    // 2020/11/24 00:39:27 client data sent: The\n    // 2020/11/24 00:39:27 client data received: The\n    // 2020/11/24 00:39:28 client data sent: quick\n    // 2020/11/24 00:39:28 client data received: quick\n    // 2020/11/24 00:39:29 client data sent: brown\n    // 2020/11/24 00:39:29 client data received: brown\n    // 2020/11/24 00:39:30 client data sent: fox\n    // 2020/11/24 00:39:30 client data received: fox\n    // 2020/11/24 00:39:31 client data sent: jumps\n    // 2020/11/24 00:39:31 client data received: jumps\n    // 2020/11/24 00:39:32 client data sent: over\n    // 2020/11/24 00:39:32 client data received: over\n    // 2020/11/24 00:39:33 client data sent: the\n    // 2020/11/24 00:39:33 client data received: the\n    // 2020/11/24 00:39:34 client data sent: lazy\n    // 2020/11/24 00:39:34 client data received: lazy\n    // 2020/11/24 00:39:35 client data sent: dog\n    // 2020/11/24 00:39:35 client data received: dog\n}\n```\n\n## Contributions\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in current work by you, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.\n\nFeel free to send some [Pull request](https://github.com/joseluisq/goipcc/pulls) or [issue](https://github.com/joseluisq/goipcc/issues).\n\n## License\n\nThis work is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).\n\n© 2020-present [Jose Quintana](https://git.io/joseluisq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fgoipcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoseluisq%2Fgoipcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fgoipcc/lists"}