don't use high bit of interest handles; reserved for interests set by servers

This commit is contained in:
Darren Ranalli 2006-01-10 00:26:57 +00:00
parent c3f9f335fc
commit 58c22b71b0
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ class DoInterestManager(DirectObject.DirectObject):
# 'handle' is a number that represents a single interest set that the
# client has requested; the interest set may be modified
_HandleSerialNum = 0
_HandleMask = 0xFFFF
# high bit is reserved for server interests
_HandleMask = 0x7FFF
# 'scope' refers to a single request to change an interest set
_ScopeIdSerialNum = 100