Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wspy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
wspy
Commits
a1721eeb
Commit
a1721eeb
authored
Jul 26, 2013
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed receive() to recv() on Connection class to generalize the API
parent
ba21de4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
connection.py
connection.py
+2
-2
handshake.py
handshake.py
+0
-1
No files found.
connection.py
View file @
a1721eeb
...
@@ -39,7 +39,7 @@ class Connection(object):
...
@@ -39,7 +39,7 @@ class Connection(object):
else
:
else
:
self
.
sock
.
send
(
*
message
.
fragment
(
fragment_size
,
mask
=
mask
))
self
.
sock
.
send
(
*
message
.
fragment
(
fragment_size
,
mask
=
mask
))
def
rec
eive
(
self
):
def
rec
v
(
self
):
"""
"""
Receive a message. A message may consist of multiple (ordered) data
Receive a message. A message may consist of multiple (ordered) data
frames. A control frame may be delivered at any time, also when
frames. A control frame may be delivered at any time, also when
...
@@ -103,7 +103,7 @@ class Connection(object):
...
@@ -103,7 +103,7 @@ class Connection(object):
"""
"""
while
True
:
while
True
:
try
:
try
:
self
.
onmessage
(
self
.
rec
eive
())
self
.
onmessage
(
self
.
rec
v
())
except
SocketClosed
as
e
:
except
SocketClosed
as
e
:
self
.
close
(
e
.
code
,
e
.
reason
)
self
.
close
(
e
.
code
,
e
.
reason
)
break
break
...
...
handshake.py
View file @
a1721eeb
...
@@ -237,7 +237,6 @@ class ClientHandshake(Handshake):
...
@@ -237,7 +237,6 @@ class ClientHandshake(Handshake):
self
.
wsock
.
protocol
=
protocol
self
.
wsock
.
protocol
=
protocol
def
handle_auth
(
self
,
headers
):
def
handle_auth
(
self
,
headers
):
# HTTP authentication is required in the request
# HTTP authentication is required in the request
hdr
=
headers
[
'WWW-Authenticate'
]
hdr
=
headers
[
'WWW-Authenticate'
]
...
...
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