Skip to content

GDExtension module for Unix sockets for Godot Engine 4

License

Notifications You must be signed in to change notification settings

ShadowBlip/godot-unix-socket

 
 

Repository files navigation

Godot-UnixSocket

GDNative module for Unix sockets communications in Godot Engine under Linux and MacOS builds.

Compiling

  1. Install Scons (v3.0.1 and above is required)
    Linux: python -m pip install scons
    MacOS: brew install scons
  2. Clone this repository with:
    1. git clone --recursive https://github.com/Abdera7mane/Godot-UnixSocket.git
    2. cd Godot-UnixSocket
    3. git submodule update --init --recursive
  3. Run the approperiate script according to your system to build the library:
    Linux: ./build_linux.sh
    MacOS: ./build_mac.sh
  4. The binaries should be generated in bin/ directory.

Documentation

class StreamPeerUnix

Inherits: StreamPeerGDNative < StreamPeer

methods

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

About

GDExtension module for Unix sockets for Godot Engine 4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 59.8%
  • Makefile 26.3%
  • Python 11.4%
  • C 2.5%