Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
cdf6af12
Kaydet (Commit)
cdf6af12
authored
Agu 07, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document gethostbyname_ex().
üst
96e11029
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
libsocket.tex
Doc/lib/libsocket.tex
+12
-1
No files found.
Doc/lib/libsocket.tex
Dosyayı görüntüle @
cdf6af12
...
@@ -98,7 +98,18 @@ for a few symbols, default values are provided.
...
@@ -98,7 +98,18 @@ for a few symbols, default values are provided.
\begin{funcdesc}
{
gethostbyname
}{
hostname
}
\begin{funcdesc}
{
gethostbyname
}{
hostname
}
Translate a host name to IP address format. The IP address is
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
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}
\end{funcdesc}
\begin{funcdesc}
{
gethostname
}{}
\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