Swoole\Client::getpeername

(PECL swoole >= 1.9.0)

Swoole\Client::getpeernameGet the remote socket name of the connection.

說明

public Swoole\Client::getpeername(): array

參數

此函數沒有參數。

返回值

The host and port of the remote socket.