pybitmessage.network.proxy module¶
Set proxy if avaiable otherwise exception
-
exception
ProxyError(code=-1)[source]¶ Bases:
exceptions.ExceptionBase proxy exception class
-
errorCodes= ('Unknown error',)¶
-
-
exception
GeneralProxyError(code=-1)[source]¶ Bases:
pybitmessage.network.proxy.ProxyErrorGeneral proxy error class (not specfic to an implementation)
-
errorCodes= ('Success', 'Invalid data', 'Not connected', 'Not available', 'Bad proxy type', 'Bad input', 'Timed out', 'Network unreachable', 'Connection refused', 'Host unreachable')¶
-
-
class
Proxy(address)[source]¶ Bases:
pybitmessage.network.advanceddispatcher.AdvancedDispatcherBase proxy class
-
proxy¶ Return proxy IP and port
-
onion_proxy¶ Return separate proxy IP and port for use only with onion addresses. Untested.
-
onion_auth¶ Return proxy authentication settings for onion hosts only
-
auth¶ Return proxy authentication settings
-
handle_connect()¶ Handle connection event (to the proxy)
-
state_proxy_handshake_done()¶ Handshake is complete at this point
-