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
5772c868
Kaydet (Commit)
5772c868
authored
Agu 16, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document socket.getfqdn().
üst
b526e5fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
libsocket.tex
Doc/lib/libsocket.tex
+12
-4
No files found.
Doc/lib/libsocket.tex
Dosyayı görüntüle @
5772c868
...
@@ -101,6 +101,16 @@ those symbols that are defined in the \UNIX{} header files are defined;
...
@@ -101,6 +101,16 @@ those symbols that are defined in the \UNIX{} header files are defined;
for a few symbols, default values are provided.
for a few symbols, default values are provided.
\end{datadesc}
\end{datadesc}
\begin{funcdesc}
{
getfqdn
}{
\optional
{
name
}}
Return a fully qualified domain name for
\var
{
name
}
.
If
\var
{
name
}
is omitted or empty, it is interpreted as the local
host. To find the fully qualified name, the hostname returned by
\function
{
gethostbyaddr()
}
is checked, then aliases for the host, if
available. The first name which includes a period is selected. In
case no fully qualified domain name is available, the hostname is
returned.
\end{funcdesc}
\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
...
@@ -134,10 +144,8 @@ responding to the given \var{ip_address}, \var{aliaslist} is a
...
@@ -134,10 +144,8 @@ responding to the given \var{ip_address}, \var{aliaslist} is a
(possibly empty) list of alternative host names for the same address,
(possibly empty) list of alternative host names for the same address,
and
\var
{
ipaddrlist
}
is a list of IP addresses for the same interface
and
\var
{
ipaddrlist
}
is a list of IP addresses for the same interface
on the same host (most likely containing only a single address).
on the same host (most likely containing only a single address).
To find the fully qualified domain name, check
\var
{
hostname
}
and the
To find the fully qualified domain name, use the function
items of
\var
{
aliaslist
}
for an entry containing at least one period.
\function
{
getfqdn()
}
.
An implementation of this algorithm can be found in the module
\module
{
smtplib
}
in form of the
\function
{
make
_
fqdn()
}
function.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
getprotobyname
}{
protocolname
}
\begin{funcdesc}
{
getprotobyname
}{
protocolname
}
...
...
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