Package common :: Module socks5 :: Class Socks5
[hide private]
[frames] | no frames]

Class Socks5

source code


Instance Methods [hide private]
 
__init__(self, idlequeue, host, port, initiator, target, sid) source code
 
open_file_for_reading(self) source code
 
close_file(self) source code
 
get_fd(self)
Test if file is already open and return its fd, or just open the file and return the fd
source code
 
rem_fd(self, fd) source code
 
receive(self)
Read small chunks of data.
source code
 
send_raw(self, raw_data)
Write raw outgoing data
source code
 
write_next(self) source code
 
get_file_contents(self, timeout)
Read file contents from socket and write them to file
source code
 
disconnect(self)
Close open descriptors and remover socket descr.
source code
 
_get_auth_buff(self)
Message, that we support 1 one auth mechanism: the 'no auth' mechanism
source code
 
_parse_auth_buff(self, buff)
Parse the initial message and create a list of auth mechanisms
source code
 
_get_auth_response(self)
Socks version(5), number of extra auth methods (we send 0x00 - no auth)
source code
 
_get_connect_buff(self)
Connect request by domain name
source code
 
_get_request_buff(self, msg, command=1)
Connect request by domain name, sid sha, instead of domain name (jep 0096)
source code
 
_parse_request_buff(self, buff) source code
 
read_connect(self)
Connect response: version, auth method
source code
 
continue_paused_transfer(self) source code
 
_get_sha1_auth(self)
Get sha of sid + Initiator jid + Target jid
source code
Method Details [hide private]

__init__(self, idlequeue, host, port, initiator, target, sid)
(Constructor)

source code 

open_file_for_reading(self)

source code 

close_file(self)

source code 

get_fd(self)

source code 
Test if file is already open and return its fd, or just open the file and return the fd

rem_fd(self, fd)

source code 

receive(self)

source code 
Read small chunks of data. Call owner's disconnected() method if appropriate

send_raw(self, raw_data)

source code 
Write raw outgoing data

write_next(self)

source code 

get_file_contents(self, timeout)

source code 
Read file contents from socket and write them to file

disconnect(self)

source code 
Close open descriptors and remover socket descr. from idleque

_get_auth_buff(self)

source code 
Message, that we support 1 one auth mechanism: the 'no auth' mechanism

_parse_auth_buff(self, buff)

source code 
Parse the initial message and create a list of auth mechanisms

_get_auth_response(self)

source code 
Socks version(5), number of extra auth methods (we send 0x00 - no auth)

_get_connect_buff(self)

source code 
Connect request by domain name

_get_request_buff(self, msg, command=1)

source code 
Connect request by domain name, sid sha, instead of domain name (jep 0096)

_parse_request_buff(self, buff)

source code 

read_connect(self)

source code 
Connect response: version, auth method

continue_paused_transfer(self)

source code 

_get_sha1_auth(self)

source code 
Get sha of sid + Initiator jid + Target jid