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
6c6d6627
Kaydet (Commit)
6c6d6627
authored
Haz 06, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some markup errors and adjust wording slightly.
üst
be946bfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
libsocket.tex
Doc/lib/libsocket.tex
+15
-15
No files found.
Doc/lib/libsocket.tex
Dosyayı görüntüle @
6c6d6627
...
@@ -515,27 +515,27 @@ block until they can proceed.
...
@@ -515,27 +515,27 @@ block until they can proceed.
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
[socket]
{
settimeout
}{
value
}
\begin{methoddesc}
[socket]
{
settimeout
}{
value
}
Set a timeout on blocking socket operations. Value can be any numeric
value
Set a timeout on blocking socket operations. Value can be any numeric
or
\var
{
None
}
. Socket operations will raise an
\exception
{
error
}
exceptio
n
value or
\code
{
None
}
. Socket operations will raise a
n
if the timeout period
\var
{
value
}
has elapsed before the operation
has
\exception
{
error
}
exception if the timeout period
\var
{
value
}
has
completed. Setting a timeout of
\var
{
None
}
disables timeouts on socket
elapsed before the operation has completed. Setting a timeout of
operations.
\code
{
None
}
disables timeouts on socket
operations.
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
[socket]
{
gettimeout
}{}
\begin{methoddesc}
[socket]
{
gettimeout
}{}
Returns the timeout in floating seconds associated with socket
operations.
Returns the timeout in floating seconds associated with socket
A timeout of None indicates that timeouts on socket operations are
operations. A timeout of
\code
{
None
}
indicates that timeouts on
disabled.
socket operations are
disabled.
\end{methoddesc}
\end{methoddesc}
Some notes on the interaction between socket blocking and timeouts:
Some notes on the interaction between socket blocking and timeouts:
socket blocking mode takes precendence over timeouts. If a socket
socket blocking mode takes precendence over timeouts. If a socket
if
if set to non-blocking mode, then timeouts set on sockets are never
set to non-blocking mode, then timeouts set on sockets are not used.
don't mean anything. The timeout value associated with the socket
The timeout value associated with the socket can still be set using
can still be set via settimeout and its value retrieved via gettimeout,
\method
{
settimeout()
}
and its value retrieved using
but the timeout is never enforced (i.e, an exception will never be
\method
{
gettimeout()
}
, but the timeout is never enforced (an exception
thrown). Otherwise, if the socket is in blocking mode, setting the
will never be thrown). Otherwise, if the socket is in blocking mode,
timeout will raise an exception as expected.
setting the
timeout will raise an exception as expected.
\begin{methoddesc}
[socket]
{
setsockopt
}{
level, optname, value
}
\begin{methoddesc}
[socket]
{
setsockopt
}{
level, optname, value
}
Set the value of the given socket option (see the
\UNIX
{}
manual page
Set the value of the given socket option (see the
\UNIX
{}
manual page
...
...
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