getservbyport

(PHP 4, PHP 5, PHP 7)

getservbyportGet Internet service which corresponds to port and protocol

说明

getservbyport ( int $port , string $protocol ) : string

getservbyport() returns the Internet service associated with port for the specified protocol as per /etc/services.

参数

port

The port number.

protocol

protocol is either "tcp" or "udp" (in lowercase).

返回值

Returns the Internet service name as a string.

参见

相关文章
php gettext 函数 specify the character encoding in which the messages from the domain message catalog will be returnedphp 网络 函数 关闭系统日志链接php fann 函数 从网络中读取均方误差。php fann 函数 重置网络中的均方误差。php 网络 函数 获取指定的ip地址对应的主机名php 网络 函数 返回主机名对应的 ipv4地址。php 网络 函数 get protocol number associated with protocol namephp 网络 函数 get protocol name associated with protocol numberphp 网络 函数 获取互联网服务协议对应的端口php 网络 函数 get internet service which corresponds to port and protocolphp gnupg 函数 removes all keys which were set for decryption beforephp gupnp 函数 check whether subscription is valid to the servicephp 网络 函数 converts a packed internet address to a human readable representationphp socket 函数 queries the remote side of the given socket which may either result in host/port or in a unix filesystem path dependent on its typephp socket 函数 queries the local side of the given socket which may either result in host/port or in a unix filesystem path dependent on its typephp stream 函数 创建一对完全一样的网络套接字连接流php win32service 函数 define or return the exit mode for the current running servicephp win32service 函数 update the service statusphp win32service 函数 registers the script with the scm so that it can act as the service with the given namephp swoole server set protocol of the server port.
关注编程学问公众号