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
cdf6af12
Commit
cdf6af12
authored
Aug 07, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document gethostbyname_ex().
parent
96e11029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
Doc/lib/libsocket.tex
Doc/lib/libsocket.tex
+12
-1
No files found.
Doc/lib/libsocket.tex
View file @
cdf6af12
...
...
@@ -98,7 +98,18 @@ for a few symbols, default values are provided.
\begin{funcdesc}
{
gethostbyname
}{
hostname
}
Translate a host name to IP address format. The IP address is
returned as a string, e.g.,
\code
{
'100.50.200.5'
}
. If the host name
is an IP address itself it is returned unchanged.
is an IP address itself it is returned unchanged. See
\code
{
gethostbyname
_
ex
}
for a more complete interface.
\end{funcdesc}
\begin{funcdesc}
{
gethostbyname
_
ex
}{
hostname
}
Translate a host name to IP address format, extended interface.
Return a triple
\code
{
(hostname, aliaslist, ipaddrlist)
}
where
\code
{
hostname
}
is the primary host name responding to the given
\var
{
ip
_
address
}
,
\code
{
aliaslist
}
is a (possibly empty) list of
alternative host names for the same address, and
\code
{
ipaddrlist
}
is
a list of IP addresses for the same interface on the same
host (often but not always a single address).
\end{funcdesc}
\begin{funcdesc}
{
gethostname
}{}
...
...
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