Swoole\Client::getsockname

(PECL swoole >= 1.9.0)

Swoole\Client::getsocknameGet the local socket name of the connection.

說(shuō)明

public Swoole\Client::getsockname(): array

參數(shù)

此函數(shù)沒(méi)有參數(shù)。

返回值

The host and port of the local socket.