|
|
| __init__(self,
idlequeue,
complete_transfer_cb=None,
progress_transfer_cb=None,
error_cb=None) |
source code
|
|
|
|
start_listener(self,
port,
sha_str,
sha_handler,
sid)
Start waiting for incomming connections on (host, port) and do a socks5
authentication using sid for generated SHA |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
reconnect_receiver(self,
receiver,
streamhost)
Check the state of all streamhosts and if all has failed, then emit
connection failure cb. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
process_result(self,
result,
actor)
[ 0, - 1 ] complete/end transfer
[ > 0 ] send progress message
[ None ] do nothing |
source code
|
|
|
|
remove_receiver(self,
idx,
do_disconnect=True)
Remove reciver from the list and decrease the number of active
connections with 1 |
source code
|
|
|
|
remove_sender(self,
idx,
do_disconnect=True)
Remove sender from the list of senders and decrease the number of active
connections with 1 |
source code
|
|