GDNative module for Unix sockets communications in Godot Engine under Linux and MacOS builds.
- Install Scons (
v3.0.1
and above is required)
Linux:python -m pip install scons
MacOS:brew install scons
- Clone this repository with:
git clone --recursive https://github.com/Abdera7mane/Godot-UnixSocket.git
cd Godot-UnixSocket
git submodule update --init --recursive
- Run the approperiate script according to your system to build the library:
Linux:./build_linux.sh
MacOS:./build_mac.sh
- The binaries should be generated in
bin/
directory.
Inherits: StreamPeerGDNative < StreamPeer
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 |