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
ee3de2a8
Kaydet (Commit)
ee3de2a8
authored
Eki 04, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
small fixes
üst
951213e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
rpc.py
Demo/rpc/rpc.py
+1
-1
xdr.py
Demo/rpc/xdr.py
+3
-3
No files found.
Demo/rpc/rpc.py
Dosyayı görüntüle @
ee3de2a8
...
@@ -376,7 +376,7 @@ class RawBroadcastUDPClient(RawUDPClient):
...
@@ -376,7 +376,7 @@ class RawBroadcastUDPClient(RawUDPClient):
def
connsocket
(
self
):
def
connsocket
(
self
):
# Don't connect -- use sendto
# Don't connect -- use sendto
self
.
sock
.
allowbroadcast
(
1
)
self
.
sock
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_BROADCAST
,
1
)
def
set_reply_handler
(
self
,
reply_handler
):
def
set_reply_handler
(
self
,
reply_handler
):
self
.
reply_handler
=
reply_handler
self
.
reply_handler
=
reply_handler
...
...
Demo/rpc/xdr.py
Dosyayı görüntüle @
ee3de2a8
...
@@ -69,7 +69,7 @@ class Packer:
...
@@ -69,7 +69,7 @@ class Packer:
self
.
pack_uint
(
n
)
self
.
pack_uint
(
n
)
self
.
pack_fstring
(
n
,
s
)
self
.
pack_fstring
(
n
,
s
)
pack_opaque
=
pack_
string
pack_opaque
=
pack_
fopaque
def
pack_list
(
self
,
list
,
pack_item
):
def
pack_list
(
self
,
list
,
pack_item
):
for
item
in
list
:
for
item
in
list
:
...
@@ -86,7 +86,7 @@ class Packer:
...
@@ -86,7 +86,7 @@ class Packer:
def
pack_array
(
self
,
list
,
pack_item
):
def
pack_array
(
self
,
list
,
pack_item
):
n
=
len
(
list
)
n
=
len
(
list
)
self
.
pack_uint
(
n
)
self
.
pack_uint
(
n
)
self
.
pack_farray
(
n
,
list
)
self
.
pack_farray
(
n
,
list
,
pack_item
)
class
Unpacker
:
class
Unpacker
:
...
@@ -176,7 +176,7 @@ class Unpacker:
...
@@ -176,7 +176,7 @@ class Unpacker:
n
=
self
.
unpack_uint
()
n
=
self
.
unpack_uint
()
return
self
.
unpack_fstring
(
n
)
return
self
.
unpack_fstring
(
n
)
unpack_opaque
=
unpack_
string
unpack_opaque
=
unpack_
fopaque
def
unpack_list
(
self
,
unpack_item
):
def
unpack_list
(
self
,
unpack_item
):
list
=
[]
list
=
[]
...
...
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