Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
62ac99eb
Commit
62ac99eb
authored
Dec 19, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documented getprotobyname() interface.
parent
25405c78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
Doc/lib/libsocket.tex
Doc/lib/libsocket.tex
+9
-0
Doc/libsocket.tex
Doc/libsocket.tex
+9
-0
No files found.
Doc/lib/libsocket.tex
View file @
62ac99eb
...
...
@@ -107,6 +107,15 @@ a list of IP addresses for the same interface on the same
host (most likely containing only a single address).
\end{funcdesc}
\begin{funcdesc}
{
getprotobyname
}{
protocolname
}
Translate an Internet protocol name (e.g.
\code
{
'icmp'
}
) to a constant
suitable for passing as the (optional) third argument to the
\code
{
socket()
}
function. This is usually only needed for sockets
opened in ``raw'' mode (
\code
{
SOCK
_
RAW
}
); for the normal socket modes,
the correct protocol is chosen automatically if the protocol is
omitted or zero.
\end{funcdesc}
\begin{funcdesc}
{
getservbyname
}{
servicename
\,
protocolname
}
Translate an Internet service name and protocol name to a port number
for that service. The protocol name should be
\code
{
'tcp'
}
or
...
...
Doc/libsocket.tex
View file @
62ac99eb
...
...
@@ -107,6 +107,15 @@ a list of IP addresses for the same interface on the same
host (most likely containing only a single address).
\end{funcdesc}
\begin{funcdesc}
{
getprotobyname
}{
protocolname
}
Translate an Internet protocol name (e.g.
\code
{
'icmp'
}
) to a constant
suitable for passing as the (optional) third argument to the
\code
{
socket()
}
function. This is usually only needed for sockets
opened in ``raw'' mode (
\code
{
SOCK
_
RAW
}
); for the normal socket modes,
the correct protocol is chosen automatically if the protocol is
omitted or zero.
\end{funcdesc}
\begin{funcdesc}
{
getservbyname
}{
servicename
\,
protocolname
}
Translate an Internet service name and protocol name to a port number
for that service. The protocol name should be
\code
{
'tcp'
}
or
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment