PHP 8.3.21 Released!

stream_socket_get_name

(PHP 5, PHP 7, PHP 8)

stream_socket_get_name获取本地或者远程的套接字名称

说明

stream_socket_get_name(resource $socket, bool $remote): string|false

返回给定的本地或者远程套接字连接的名称。

参数

socket

需要获取其名称的套接字连接。

remote

如果设置为 true ,那么将返回 remote 套接字连接名称;如果设置为 false 则返回 local 套接字连接名称。

返回值

套接字连接的名称, 或者在失败时返回 false

参见

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant