MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / set_state

Method set_state

src/network/advanceddispatcher.py:70–73  ·  view source on GitHub ↗
(self, state, length=0, expectBytes=0)

Source from the content-addressed store, hash-verified

68 return False
69
70 def set_state(self, state, length=0, expectBytes=0):
71 self.expectBytes = expectBytes
72 self.slice_read_buf(length)
73 self.state = state
74
75 def writable(self):
76 self.uploadChunk = AdvancedDispatcher._buf_len

Callers 15

handle_closeMethod · 0.95
state_initMethod · 0.80
state_auth_1Method · 0.80
state_auth_neededMethod · 0.80
state_pre_connectMethod · 0.80
state_proxy_addr_1Method · 0.80
state_proxy_addr_2_1Method · 0.80
state_proxy_addr_2_2Method · 0.80
state_proxy_portMethod · 0.80
state_auth_doneMethod · 0.80
state_pre_connectMethod · 0.80
state_auth_doneMethod · 0.80

Calls 1

slice_read_bufMethod · 0.95

Tested by

no test coverage detected