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
a47b75b0
Kaydet (Commit)
a47b75b0
authored
Ock 04, 2008
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
socket.ioctl is only available on Windows
üst
aee643b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
socket.py
Lib/socket.py
+4
-1
test_socket.py
Lib/test/test_socket.py
+10
-0
No files found.
Lib/socket.py
Dosyayı görüntüle @
a47b75b0
...
@@ -141,7 +141,10 @@ _socketmethods = (
...
@@ -141,7 +141,10 @@ _socketmethods = (
'bind'
,
'connect'
,
'connect_ex'
,
'fileno'
,
'listen'
,
'bind'
,
'connect'
,
'connect_ex'
,
'fileno'
,
'listen'
,
'getpeername'
,
'getsockname'
,
'getsockopt'
,
'setsockopt'
,
'getpeername'
,
'getsockname'
,
'getsockopt'
,
'setsockopt'
,
'sendall'
,
'setblocking'
,
'sendall'
,
'setblocking'
,
'settimeout'
,
'gettimeout'
,
'shutdown'
,
'ioctl'
)
'settimeout'
,
'gettimeout'
,
'shutdown'
)
if
os
.
name
==
"nt"
:
_socketmethods
=
_socketmethods
+
(
'ioctl'
,)
if
sys
.
platform
==
"riscos"
:
if
sys
.
platform
==
"riscos"
:
_socketmethods
=
_socketmethods
+
(
'sleeptaskw'
,)
_socketmethods
=
_socketmethods
+
(
'sleeptaskw'
,)
...
...
Lib/test/test_socket.py
Dosyayı görüntüle @
a47b75b0
...
@@ -9,6 +9,7 @@ import time
...
@@ -9,6 +9,7 @@ import time
import
thread
,
threading
import
thread
,
threading
import
Queue
import
Queue
import
sys
import
sys
import
os
import
array
import
array
from
weakref
import
proxy
from
weakref
import
proxy
import
signal
import
signal
...
@@ -500,6 +501,15 @@ class GeneralModuleTests(unittest.TestCase):
...
@@ -500,6 +501,15 @@ class GeneralModuleTests(unittest.TestCase):
self
.
assertEqual
(
sock
.
proto
,
0
)
self
.
assertEqual
(
sock
.
proto
,
0
)
sock
.
close
()
sock
.
close
()
def
test_sock_ioctl
(
self
):
if
os
.
name
!=
"nt"
:
return
self
.
assert_
(
hasattr
(
socket
.
socket
,
'ioctl'
))
self
.
assert_
(
hasattr
(
socket
,
'SIO_RCVALL'
))
self
.
assert_
(
hasattr
(
socket
,
'RCVALL_ON'
))
self
.
assert_
(
hasattr
(
socket
,
'RCVALL_OFF'
))
class
BasicTCPTest
(
SocketConnectedTest
):
class
BasicTCPTest
(
SocketConnectedTest
):
def
__init__
(
self
,
methodName
=
'runTest'
):
def
__init__
(
self
,
methodName
=
'runTest'
):
...
...
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