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 网络 函数 别名 checkdnsrrphp 网络 函数 别名 getmxrrphp fann 函数 从配置文件中构建一个反向传播神经网络。php fann 函数 为提供的神经和网络层数返回激活陡度php fann 函数 在网络中设置一个连接。php 网络 函数 获取互联网主机名对应的 mx 记录php 网络 函数 get protocol number associated with protocol namephp 网络 函数 get protocol name associated with protocol numberphp 网络 函数 get internet service which corresponds to port and protocolphp 网络 函数 调用一个 header 函数php firebird/interbase 函数 disconnect from the service managerphp iis 函数 stops the service defined by serviceidphp 网络 函数 converts a packed internet address to a human readable representationphp mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp maxdb 函数 returns the version of the maxdb protocol usedphp mysqlnd qc 函数 installs a callback which decides whether a statement is cachedphp 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 win32service 函数 deletes a service entry from the scm databasephp win32service 函数 returns the last control message that was sent to this service
关注编程学问公众号