PHP 8.2.31
Preview: getservbyname-c.yaml Size: 729 B
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Socket/getservbyname-c.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: <tt>name</tt> is a service name (&quot;ftp&quot;, &quot;telnet&quot;, ...) and proto is a protocol name (&quot;udp&quot;, &quot;tcp&quot;, ...). '/etc/services' (or your system's equivalent) is searched for a service for <tt>name</tt> and <tt>proto</tt>, and the port number is returned.
- !ruby/struct:SM::Flow::P 
  body: Note that unlike Socket.getaddrinfo, <tt>proto</tt> may not be specified using the Socket::SOCK_* constants, a string must must be used.
full_name: Socket::getservbyname
is_singleton: true
name: getservbyname
params: " Socket.getservbyname(name, proto=\"tcp\") => port\n"
visibility: public

Directory Contents

Dirs: 1 × Files: 13

Name Size Perms Modified Actions
Constants DIR
- drwxr-xr-x 2024-03-03 22:50:13
Edit Download
5.59 KB lrw-r--r-- 2023-07-26 13:47:07
Edit Download
2.12 KB lrw-r--r-- 2023-07-26 13:47:08
Edit Download
6.09 KB lrw-r--r-- 2023-07-26 13:47:08
Edit Download
2.29 KB lrw-r--r-- 2023-07-26 13:47:07
Edit Download
8.77 KB lrw-r--r-- 2023-07-26 13:47:08
Edit Download
1.76 KB lrw-r--r-- 2023-07-26 13:47:08
Edit Download
5.88 KB lrw-r--r-- 2023-07-26 13:47:07
Edit Download
3.81 KB lrw-r--r-- 2023-07-26 13:47:07
Edit Download
729 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
5.04 KB lrw-r--r-- 2023-07-26 13:47:08
Edit Download
7.38 KB lrw-r--r-- 2023-07-26 13:47:08
Edit Download
2.66 KB lrw-r--r-- 2023-07-26 13:47:08
Edit Download
1.80 KB lrw-r--r-- 2023-07-26 13:47:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).