Interface for Local Unix Socket specific operations.
Methods
accept():ISocket
Accepts a new incoming connection.
Returns:
A new ISocket instance for the accepted connection, or null on error.
bind(path:String):Bool
Binds the socket to a specific filesystem path.
Parameters:
path | The filesystem path for the socket. |
|---|
Returns:
True if successful, false otherwise.
connect(path:String):Bool
Connects to a socket at the specified path.
Parameters:
path | The filesystem path of the socket. |
|---|
Returns:
True if successful, false otherwise.
listen(backlog:Int = 5):Bool
Listens for incoming connections on the socket.
Parameters:
backlog | The maximum number of pending connections. |
|---|
Returns:
True if successful, false otherwise.