Skip to content
0.2.0-dev Download ZIP
35 lines ·1.6 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="StreamPeerUDS" inherits="StreamPeerSocket" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A stream peer that handles UNIX Domain Socket (UDS) connections.
5 </brief_description>
6 <description>
7 A stream peer that handles UNIX Domain Socket (UDS) connections. This object can be used to connect to UDS servers, or also is returned by a UDS server. 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="bind">
14 <return type="int" enum="Error" />
15 <param index="0" name="path" type="String" />
16 <description>
17 Opens the UDS socket, and binds it to the specified socket path.
18 This method is generally not needed, and only used to force the subsequent call to [method connect_to_host] to use the specified [param path] as the source address.
19 </description>
20 </method>
21 <method name="connect_to_host">
22 <return type="int" enum="Error" />
23 <param index="0" name="path" type="String" />
24 <description>
25 Connects to the specified UNIX Domain Socket path. Returns [constant OK] on success.
26 </description>
27 </method>
28 <method name="get_connected_path" qualifiers="const">
29 <return type="String" />
30 <description>
31 Returns the socket path of this peer.
32 </description>
33 </method>
34 </methods>
35</class>