Skip to content
0.2.0-dev Download ZIP
28 lines ·1.3 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="UDSServer" inherits="SocketServer" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A Unix Domain Socket (UDS) server.
5 </brief_description>
6 <description>
7 A Unix Domain Socket (UDS) server. Listens to connections on a socket path and returns a [StreamPeerUDS] when it gets an incoming connection. Unix Domain Sockets provide inter-process communication on the same machine using the filesystem namespace.
8 [b]Note:[/b] Unix Domain Sockets are only available on Unix-like systems (Linux, macOS, etc.) and are not supported on Windows.
9 </description>
10 <tutorials>
11 </tutorials>
12 <methods>
13 <method name="listen">
14 <return type="int" enum="Error" />
15 <param index="0" name="path" type="String" />
16 <description>
17 Listens on the socket at [param path]. The socket file will be created at the specified path.
18 [b]Note:[/b] The socket file must not already exist at the specified path. You may need to remove any existing socket file before calling this method.
19 </description>
20 </method>
21 <method name="take_connection">
22 <return type="StreamPeerUDS" />
23 <description>
24 If a connection is available, returns a StreamPeerUDS with the connection.
25 </description>
26 </method>
27 </methods>
28</class>