Package common :: Module connection_handlers :: Class ConnectionBytestream
[hide private]
[frames] | no frames]

Class ConnectionBytestream

source code

Instance Methods [hide private]
 
__init__(self) source code
 
is_transfer_stopped(self, file_props) source code
 
send_success_connect_reply(self, streamhost)
send reply to the initiator of FT that we made a connection
source code
 
remove_transfers_for_contact(self, contact)
stop all active transfer for contact
source code
 
remove_all_transfers(self)
stops and removes all active connections from the socks5 pool
source code
 
remove_transfer(self, file_props, remove_from_list=True) source code
 
disconnect_transfer(self, file_props) source code
 
send_socks5_info(self, file_props, fast=True, receiver=None, sender=None)
send iq for the present streamhosts and proxies
source code
 
send_file_rejection(self, file_props, code='403', typ=None)
informs sender that we refuse to download the file typ is used when code = '400', in this case typ can be 'strean' for invalid stream or 'profile' for invalid profile
source code
 
send_file_approval(self, file_props)
send iq, confirming that we want to download the file
source code
 
send_file_request(self, file_props)
send iq for new FT request
source code
 
_result_socks5_sid(self, sid, hash_id)
store the result of sha message from auth.
source code
 
_connect_error(self, to, _id, sid, code=404)
cb, when there is an error establishing BS connection, or when connection is rejected
source code
 
_proxy_auth_ok(self, proxy)
cb, called after authentication to proxy server
source code
 
_bytestreamErrorCB(self, con, iq_obj) source code
 
_bytestreamSetCB(self, con, iq_obj) source code
 
_ResultCB(self, con, iq_obj) source code
 
_bytestreamResultCB(self, con, iq_obj) source code
 
_siResultCB(self, con, iq_obj) source code
 
_siSetCB(self, con, iq_obj) source code
 
_siErrorCB(self, con, iq_obj) source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

is_transfer_stopped(self, file_props)

source code 

send_success_connect_reply(self, streamhost)

source code 
send reply to the initiator of FT that we made a connection

remove_transfers_for_contact(self, contact)

source code 
stop all active transfer for contact

remove_all_transfers(self)

source code 
stops and removes all active connections from the socks5 pool

remove_transfer(self, file_props, remove_from_list=True)

source code 

disconnect_transfer(self, file_props)

source code 

send_socks5_info(self, file_props, fast=True, receiver=None, sender=None)

source code 
send iq for the present streamhosts and proxies

send_file_rejection(self, file_props, code='403', typ=None)

source code 
informs sender that we refuse to download the file typ is used when code = '400', in this case typ can be 'strean' for invalid stream or 'profile' for invalid profile

send_file_approval(self, file_props)

source code 
send iq, confirming that we want to download the file

send_file_request(self, file_props)

source code 
send iq for new FT request

_result_socks5_sid(self, sid, hash_id)

source code 
store the result of sha message from auth.

_connect_error(self, to, _id, sid, code=404)

source code 
cb, when there is an error establishing BS connection, or when connection is rejected

_proxy_auth_ok(self, proxy)

source code 
cb, called after authentication to proxy server

_bytestreamErrorCB(self, con, iq_obj)

source code 

_bytestreamSetCB(self, con, iq_obj)

source code 

_ResultCB(self, con, iq_obj)

source code 

_bytestreamResultCB(self, con, iq_obj)

source code 

_siResultCB(self, con, iq_obj)

source code 

_siSetCB(self, con, iq_obj)

source code 

_siErrorCB(self, con, iq_obj)

source code