Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
57c663b0
Commit
57c663b0
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
a0d97c9c
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 @
57c663b0
...
...
@@ -84,11 +84,14 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
self
.
__input_lock
=
threading
.
Lock
()
self
.
__inp
=
None
# None, a single String, or a list
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:
# __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:
# __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 state alternates between 0 and 1.
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