pybitmessage.network.proxy module¶
src/network/proxy.py¶
-
exception
GeneralProxyError
(code=-1)[source]¶ Bases:
pybitmessage.network.proxy.ProxyError
General 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.AdvancedDispatcher
Base proxy class
-
auth
¶ Return proxy authentication settings
-
handle_connect
()¶ Handle connection event (to the proxy)
-
onion_auth
¶ Return proxy authentication settings for onion hosts only
-
onion_proxy
¶ Return separate proxy IP and port for use only with onion addresses. Untested.
-
proxy
¶ Return proxy IP and port
-
state_proxy_handshake_done
()¶ Handshake is complete at this point
-
-
exception
ProxyError
(code=-1)[source]¶ Bases:
exceptions.Exception
Base proxy exception class
-
errorCodes
= ('Unknown error',)¶
-