Swoole\Client::getpeername

(PECL swoole >= 1.9.0)

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

說明

public Swoole\Client::getpeername(): array

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

The host and port of the remote socket.