{"id":15141895,"url":"https://github.com/abdera7mane/godot-unixsocket","last_synced_at":"2025-10-23T18:30:55.781Z","repository":{"id":46379634,"uuid":"432741908","full_name":"Abdera7mane/Godot-UnixSocket","owner":"Abdera7mane","description":"GDExtension/GDNative module for UNIX socket support in Godot Engine","archived":false,"fork":false,"pushed_at":"2024-04-25T10:38:16.000Z","size":43,"stargazers_count":15,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T20:29:51.966Z","etag":null,"topics":["gdextension","gdnative","godot","godotengine","nativescript","plugin","unix-socket","unixsocket"],"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/Abdera7mane.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}},"created_at":"2021-11-28T14:56:40.000Z","updated_at":"2024-06-08T17:28:10.000Z","dependencies_parsed_at":"2024-02-15T21:47:51.596Z","dependency_job_id":null,"html_url":"https://github.com/Abdera7mane/Godot-UnixSocket","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdera7mane%2FGodot-UnixSocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdera7mane%2FGodot-UnixSocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdera7mane%2FGodot-UnixSocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdera7mane%2FGodot-UnixSocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Abdera7mane","download_url":"https://codeload.github.com/Abdera7mane/Godot-UnixSocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237869279,"owners_count":19379294,"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":["gdextension","gdnative","godot","godotengine","nativescript","plugin","unix-socket","unixsocket"],"created_at":"2024-09-26T09:20:22.954Z","updated_at":"2025-10-23T18:30:50.492Z","avatar_url":"https://github.com/Abdera7mane.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Godot-UnixSocket\n\n[GDExtension](https://docs.godotengine.org/en/stable/tutorials/scripting/gdextension/what_is_gdextension.html) module for UNIX domain sockets support in [Godot Engine](https://github.com/godotengine/godot) under Linux and MacOS builds.\n\n## Build\n\n### Prerequisites\n\n1. [Python](https://www.python.org)\n2. [SCons](https://scons.org)\n3. C/C++ compiler\n\n### Compiling\n\n1. Clone the repository:\n```\ngit clone --recursive https://github.com/Abdera7mane/Godot-UnixSocket.git\ncd Godot-UnixSocket\ngit submodule update --init --recursive\n```\n2. Build with scons (outputs to `bin`):  \n#### debug build\n```\nscons target=template_debug\n```\n#### release build\n```\nscons target=template_release\n```\n\n## Documentation\n\n### class StreamPeerUnix\n**Inherits:**\n[StreamPeerExtension](https://docs.godotengine.org/en/stable/classes/class_streampeerextension.html) \u003c\n[StreamPeer](https://docs.godotengine.org/en/stable/classes/class_streampeer.html) \u003c\n[RefCounted](https://docs.godotengine.org/en/stable/classes/class_refcounted.html) \u003c\n[Object](https://docs.godotengine.org/en/stable/classes/class_object.html)\n\n### methods\n\n| return                 | definition           | description                                                        |\n|------------------------|----------------------|--------------------------------------------------------------------|\n| [int][class_int]       | `open(path: String)` | Opens a connection to a socket at `path` and returns an error code |\n| [bool][class_bool]     | `is_open()`          | Checks if the stream peer is connected                             |\n| [String][class_string] | `get_path()`         | Gets the current connected socket path                             |\n| void                   | `close()`            | Closes the socket connection                                       |\n\n[class_int]: https://docs.godotengine.org/en/stable/classes/class_int.html\n[class_bool]: https://docs.godotengine.org/en/stable/classes/class_bool.html\n[class_string]: https://docs.godotengine.org/en/stable/classes/class_string.html\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdera7mane%2Fgodot-unixsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdera7mane%2Fgodot-unixsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdera7mane%2Fgodot-unixsocket/lists"}