pybitmessage.network.proxy module

Set proxy if avaiable otherwise exception

exception ProxyError(code=-1)[source]

Bases: exceptions.Exception

Base proxy exception class

errorCodes = ('Unknown error',)
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

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