Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
66aaed03
Commit
66aaed03
authored
Dec 18, 2003
by
Christian Robottom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some comments about the __has_mac variable since Jeremy beat me to
the checkin!
parent
fee12092
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/ZEO/zrpc/smac.py
src/ZEO/zrpc/smac.py
+4
-1
No files found.
src/ZEO/zrpc/smac.py
View file @
66aaed03
...
@@ -84,11 +84,14 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
...
@@ -84,11 +84,14 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
self
.
__input_lock
=
threading
.
Lock
()
self
.
__input_lock
=
threading
.
Lock
()
self
.
__inp
=
None
# None, a single String, or a list
self
.
__inp
=
None
# None, a single String, or a list
self
.
__input_len
=
0
self
.
__input_len
=
0
# Instance variables __state
and __msg_size
work together:
# Instance variables __state
, __msg_size and __has_mac
work together:
# when __state == 0:
# when __state == 0:
# __msg_size == 4, and the next thing read is a message size;
# __msg_size == 4, and the next thing read is a message size;
# __has_mac is set according to the MAC_BIT in the header
# when __state == 1:
# when __state == 1:
# __msg_size is variable, and the next thing read is a message.
# __msg_size is variable, and the next thing read is a message.
# __has_mac indicates if we're in MAC mode or not (and
# therefore, if we need to check the mac header)
# The next thing read is always of length __msg_size.
# The next thing read is always of length __msg_size.
# The state alternates between 0 and 1.
# The state alternates between 0 and 1.
self
.
__state
=
0
self
.
__state
=
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