{"id":23507033,"url":"https://github.com/lihop/stream_peer_unix","last_synced_at":"2026-05-15T21:35:05.801Z","repository":{"id":87897860,"uuid":"269029599","full_name":"lihop/stream_peer_unix","owner":"lihop","description":"UNIX socket StreamPeer for the Godot game engine","archived":false,"fork":false,"pushed_at":"2020-06-03T09:50:09.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T21:59:25.340Z","etag":null,"topics":["godot","godot-engine","unix-socket"],"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/lihop.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":"2020-06-03T08:15:29.000Z","updated_at":"2023-08-08T11:00:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"35a9927f-2758-477f-8191-da881d775b6e","html_url":"https://github.com/lihop/stream_peer_unix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lihop/stream_peer_unix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihop%2Fstream_peer_unix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihop%2Fstream_peer_unix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihop%2Fstream_peer_unix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihop%2Fstream_peer_unix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lihop","download_url":"https://codeload.github.com/lihop/stream_peer_unix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihop%2Fstream_peer_unix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33080777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"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":["godot","godot-engine","unix-socket"],"created_at":"2024-12-25T10:14:12.515Z","updated_at":"2026-05-15T21:35:05.795Z","avatar_url":"https://github.com/lihop.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StreamPeerUnix\n\nThis module implements a very basic UNIX domain socket StreamPeer for the Godot game engine.\nSimilar to [StreamPeerTCP](https://docs.godotengine.org/en/stable/classes/class_streampeertcp.html).\nOnly tested on and developed for Linux with Godot 3.2.1.\n\n\n## Installation\n1. Clone the source code of [godot-engine](https://github.com/godotengine/godot).\n2. Clone this module and put it into `godot/modules/`. Ensure that the directory name of this module is `stream_peer_unix`.\n3. [Recopmile the godot engine](https://docs.godotengine.org/en/stable/development/compiling/).\n\n\n## Usage\n\n```gdscript\nextends Node\n\n\nvar stream_peer_unix: StreamPeerUnix\n\n\nfunc _ready():\n\tstream_peer_unix = StreamPeerUnix.new()\n\n\tvar err = stream_peer_unix.open(\"/home/leroy/tmp/socket\")\n\tif err != OK:\n\t\tprint(\"stream_peer_unix not connected!\")\n\telse:\n\t\tprint(\"stream_peer_unix connected!\")\n\t\tstream_peer_unix.put_data(\"Hello from Godot!\".to_ascii())\n\n\nfunc _process(delta):\n\tif stream_peer_unix.get_status() == StreamPeerUnix.STATUS_CONNECTED:\n\t\tvar available_bytes = stream_peer_unix.get_available_bytes()\n\n\t\tif available_bytes \u003e 0:\n\t\t\tvar data = stream_peer_unix.get_data(available_bytes)\n\t\t\tprint(\"Data from socket: \", data[1].get_string_from_utf8())\n\n\nfunc _exit_tree():\n\tstream_peer_unix.close()\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flihop%2Fstream_peer_unix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flihop%2Fstream_peer_unix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flihop%2Fstream_peer_unix/lists"}