@@ -149,7 +149,8 @@ If the remote address can not be determined or is unknown at this time (such as
149149after the connection has been closed), it MAY return a ` NULL ` value instead.
150150
151151Otherwise, it will return the full address (URI) as a string value, such
152- as ` tcp://127.0.0.1:8080 ` , ` tcp://[::1]:80 ` or ` tls://127.0.0.1:443 ` .
152+ as ` tcp://127.0.0.1:8080 ` , ` tcp://[::1]:80 ` , ` tls://127.0.0.1:443 ` ,
153+ ` unix://example.sock ` or ` unix:///path/to/example.sock ` .
153154Note that individual URI components are application specific and depend
154155on the underlying transport protocol.
155156
@@ -176,7 +177,8 @@ If the local address can not be determined or is unknown at this time (such as
176177after the connection has been closed), it MAY return a ` NULL ` value instead.
177178
178179Otherwise, it will return the full address (URI) as a string value, such
179- as ` tcp://127.0.0.1:8080 ` , ` tcp://[::1]:80 ` or ` tls://127.0.0.1:443 ` .
180+ as ` tcp://127.0.0.1:8080 ` , ` tcp://[::1]:80 ` , ` tls://127.0.0.1:443 ` ,
181+ ` unix://example.sock ` or ` unix:///path/to/example.sock ` .
180182Note that individual URI components are application specific and depend
181183on the underlying transport protocol.
182184
@@ -831,6 +833,12 @@ $connector->connect('unix:///tmp/demo.sock')->then(function (ConnectionInterface
831833});
832834```
833835
836+ > The [ ` getRemoteAddress() ` ] ( #getremoteaddress ) method will return the target
837+ Unix domain socket (UDS) path as given to the ` connect() ` method, including
838+ the ` unix:// ` scheme, for example ` unix:///tmp/demo.sock ` .
839+ The [ ` getLocalAddress() ` ] ( #getlocaladdress ) method will most likely return a
840+ ` null ` value as this value is not applicable to UDS connections here.
841+
834842Under the hood, the ` Connector ` is implemented as a * higher-level facade*
835843for the lower-level connectors implemented in this package. This means it
836844also shares all of their features and implementation details.
@@ -1209,6 +1217,12 @@ Connecting to Unix domain sockets is an atomic operation, i.e. its promise will
12091217settle (either resolve or reject) immediately.
12101218As such, calling ` cancel() ` on the resulting promise has no effect.
12111219
1220+ > The [ ` getRemoteAddress() ` ] ( #getremoteaddress ) method will return the target
1221+ Unix domain socket (UDS) path as given to the ` connect() ` method, prepended
1222+ with the ` unix:// ` scheme, for example ` unix:///tmp/demo.sock ` .
1223+ The [ ` getLocalAddress() ` ] ( #getlocaladdress ) method will most likely return a
1224+ ` null ` value as this value is not applicable to UDS connections here.
1225+
12121226## Install
12131227
12141228The recommended way to install this library is [ through Composer] ( http://getcomposer.org ) .
0 commit comments