GDExtension module for UNIX domain sockets support in Godot Engine under Linux and MacOS builds.
- Clone the repository:
git clone --recursive https://github.com/Abdera7mane/Godot-UnixSocket.git
cd Godot-UnixSocket
git submodule update --init --recursive
- Build with scons (outputs to
bin
):
scons target=template_debug
scons target=template_release
Inherits: StreamPeerExtension < StreamPeer < RefCounted < Object
return | definition | description |
---|---|---|
int | open(path: String) |
Opens a connection to a socket at path and returns an error code |
bool | is_open() |
Checks if the stream peer is connected |
String | get_path() |
Gets the current connected socket path |
void | close() |
Closes the socket connection |