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
67867eaf
Kaydet (Commit)
67867eaf
authored
Mar 21, 2004
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Part of patch #909005] Added map parameter for file_dispatcher and dispatcher_with_send
üst
174bdbc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
asyncore.py
Lib/asyncore.py
+4
-4
No files found.
Lib/asyncore.py
Dosyayı görüntüle @
67867eaf
...
@@ -419,8 +419,8 @@ class dispatcher:
...
@@ -419,8 +419,8 @@ class dispatcher:
class
dispatcher_with_send
(
dispatcher
):
class
dispatcher_with_send
(
dispatcher
):
def
__init__
(
self
,
sock
=
None
):
def
__init__
(
self
,
sock
=
None
,
map
=
None
):
dispatcher
.
__init__
(
self
,
sock
)
dispatcher
.
__init__
(
self
,
sock
,
map
)
self
.
out_buffer
=
''
self
.
out_buffer
=
''
def
initiate_send
(
self
):
def
initiate_send
(
self
):
...
@@ -510,8 +510,8 @@ if os.name == 'posix':
...
@@ -510,8 +510,8 @@ if os.name == 'posix':
class
file_dispatcher
(
dispatcher
):
class
file_dispatcher
(
dispatcher
):
def
__init__
(
self
,
fd
):
def
__init__
(
self
,
fd
,
map
=
None
):
dispatcher
.
__init__
(
self
)
dispatcher
.
__init__
(
self
,
None
,
map
)
self
.
connected
=
True
self
.
connected
=
True
# set it to non-blocking mode
# set it to non-blocking mode
flags
=
fcntl
.
fcntl
(
fd
,
fcntl
.
F_GETFL
,
0
)
flags
=
fcntl
.
fcntl
(
fd
,
fcntl
.
F_GETFL
,
0
)
...
...
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