{"id":29151358,"url":"https://github.com/karpeleslab/unixconn","last_synced_at":"2025-07-01T00:09:08.726Z","repository":{"id":57619343,"uuid":"389288755","full_name":"KarpelesLab/unixconn","owner":"KarpelesLab","description":"UnixConn tools \u0026 utils","archived":false,"fork":false,"pushed_at":"2021-07-25T07:42:27.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T07:38:01.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/KarpelesLab.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}},"created_at":"2021-07-25T07:31:07.000Z","updated_at":"2021-07-26T03:13:05.000Z","dependencies_parsed_at":"2022-09-14T12:41:58.609Z","dependency_job_id":null,"html_url":"https://github.com/KarpelesLab/unixconn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/KarpelesLab/unixconn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpelesLab%2Funixconn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpelesLab%2Funixconn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpelesLab%2Funixconn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpelesLab%2Funixconn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KarpelesLab","download_url":"https://codeload.github.com/KarpelesLab/unixconn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarpelesLab%2Funixconn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262870877,"owners_count":23377314,"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":"2025-07-01T00:09:04.457Z","updated_at":"2025-07-01T00:09:08.627Z","avatar_url":"https://github.com/KarpelesLab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/KarpelesLab/unixconn?status.svg)](https://godoc.org/github.com/KarpelesLab/unixconn)\n\n# UnixConn tools\n\nSome stuff commonly used made more simple.\n\n## socketpair\n\nCalling\n\n```go\n\tpair, err := unixconn.Pair()\n```\n\nAllows pair to contain two `*net.UnixConn` that are connected to each other.\nThose can be used as replacement to TCP connections in test code, for example.\n\n## cred\n\nGolang already makes this easier thanks to `GetsockoptUcred` but I feel this\ncan be even better.\n\n```go\n\tuid, gid, pid, err := unixconn.Cred(c)\n```\n\n**NOTE**: Using `unixconn.Cred()` on a connection generated by\n`unixconn.Pair()` will return the information at the time the call to Pair()\nhappened, and may not reflect the right information if for example the socket\nwas passed to a child process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpeleslab%2Funixconn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarpeleslab%2Funixconn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpeleslab%2Funixconn/lists"}