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
781db5d0
Kaydet (Commit)
781db5d0
authored
Agu 05, 1994
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* Doc/libsocket.tex (subsection{Socket Object Methods}):
documented gethostname() and a few misc things
üst
3d0df46f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
libsocket.tex
Doc/lib/libsocket.tex
+12
-3
libsocket.tex
Doc/libsocket.tex
+12
-3
No files found.
Doc/lib/libsocket.tex
Dosyayı görüntüle @
781db5d0
...
...
@@ -54,14 +54,18 @@ call, similar to the value accompanying \code{posix.error}.
\begin{datadesc}
{
AF
_
UNIX
}
\dataline
{
AF
_
INET
}
These constants represent the address (and protocol) families,
used for the first argument to
\code
{
socket()
}
.
used for the first argument to
\code
{
socket()
}
. If the
\code
{
AF
_
UNIX
}
constant is not defined then this protocol is unsupported.
\end{datadesc}
\begin{datadesc}
{
SOCK
_
STREAM
}
\dataline
{
SOCK
_
DGRAM
}
\dataline
{
SOCK
_
RAW
}
\dataline
{
SOCK
_
RDM
}
\dataline
{
SOCK
_
SEQPACKET
}
These constants represent the socket types,
used for the second argument to
\code
{
socket()
}
.
(
There are other types, but o
nly
\code
{
SOCK
_
STREAM
}
and
(
O
nly
\code
{
SOCK
_
STREAM
}
and
\code
{
SOCK
_
DGRAM
}
appear to be generally useful.)
\end{datadesc}
...
...
@@ -71,6 +75,11 @@ returned as a string, e.g., \code{'100.50.200.5'}. If the host name
is an IP address itself it is returned unchanged.
\end{funcdesc}
\begin{funcdesc}
{
gethostname
}{}
Return the current host's canonical name, as a string
(e.g.
\code
{
'voorn.cwi.nl'
}
).
\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
...
...
@@ -139,7 +148,7 @@ with \code{select}.
Return the remote address to which the socket is connected. This is
useful to find out the port number of a remote IP socket, for instance.
(The format of the address returned depends on the address family --
see above.)
see above.)
On some systems this function is not supported.
\end{funcdesc}
\begin{funcdesc}
{
getsockname
}{}
...
...
Doc/libsocket.tex
Dosyayı görüntüle @
781db5d0
...
...
@@ -54,14 +54,18 @@ call, similar to the value accompanying \code{posix.error}.
\begin{datadesc}
{
AF
_
UNIX
}
\dataline
{
AF
_
INET
}
These constants represent the address (and protocol) families,
used for the first argument to
\code
{
socket()
}
.
used for the first argument to
\code
{
socket()
}
. If the
\code
{
AF
_
UNIX
}
constant is not defined then this protocol is unsupported.
\end{datadesc}
\begin{datadesc}
{
SOCK
_
STREAM
}
\dataline
{
SOCK
_
DGRAM
}
\dataline
{
SOCK
_
RAW
}
\dataline
{
SOCK
_
RDM
}
\dataline
{
SOCK
_
SEQPACKET
}
These constants represent the socket types,
used for the second argument to
\code
{
socket()
}
.
(
There are other types, but o
nly
\code
{
SOCK
_
STREAM
}
and
(
O
nly
\code
{
SOCK
_
STREAM
}
and
\code
{
SOCK
_
DGRAM
}
appear to be generally useful.)
\end{datadesc}
...
...
@@ -71,6 +75,11 @@ returned as a string, e.g., \code{'100.50.200.5'}. If the host name
is an IP address itself it is returned unchanged.
\end{funcdesc}
\begin{funcdesc}
{
gethostname
}{}
Return the current host's canonical name, as a string
(e.g.
\code
{
'voorn.cwi.nl'
}
).
\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
...
...
@@ -139,7 +148,7 @@ with \code{select}.
Return the remote address to which the socket is connected. This is
useful to find out the port number of a remote IP socket, for instance.
(The format of the address returned depends on the address family --
see above.)
see above.)
On some systems this function is not supported.
\end{funcdesc}
\begin{funcdesc}
{
getsockname
}{}
...
...
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