Package foolscap :: Module negotiate
[hide private]
[frames] | no frames]

Module negotiate

source code

Classes [hide private]
  Negotiation
This is the first protocol to speak over the wire.
  TubConnectorClientFactory
  TubConnector
I am used to make an outbound connection.
Functions [hide private]
 
isSubstring(small, big) source code
 
best_overlap(my_min, my_max, your_min, your_max, name)
Find the highest integer which is in both ranges (inclusive).
source code
 
check_inrange(my_min, my_max, decision, name) source code
Variables [hide private]
  crypto_available = True
  ABANDONED = 4
  BANANA = 3
  DECIDING = 2
  ENCRYPTED = 1
  PLAINTEXT = 0
Function Details [hide private]

best_overlap(my_min, my_max, your_min, your_max, name)

source code 

Find the highest integer which is in both ranges (inclusive). Raise NegotiationError (using 'name' in the error message) if there is no overlap.