| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/test/ |
Upload File : |
ó
ê=Nc @ sõ d Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z m Z m
Z
d d l m Z d d l
m Z d e j f d „ ƒ YZ d
d d „ ƒ YZ d e j f d
„ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d S( s_
Tests for L{twisted.protocol.socks}, an implementation of the SOCKSv4 and
SOCKSv4a protocols.
iÿÿÿÿN( t unittest( t
proto_helpers( t defert addresst reactor( t DNSLookupError( t sockst StringTCPTransportc B s/ e Z e Z d Z d „ Z d „ Z d „ Z RS( c C s | j S( N( t peer( t self( ( s; /usr/lib/python2.7/dist-packages/twisted/test/test_socks.pyt getPeer s c C s t j d d d ƒ S( Nt TCPs 2.3.4.5i* ( R t IPv4Address( R ( ( s; /usr/lib/python2.7/dist-packages/twisted/test/test_socks.pyt getHost s c C s
t | _ d S( N( t Truet stringTCPTransport_closing( R ( ( s; /usr/lib/python2.7/dist-packages/twisted/test/test_socks.pyt loseConnection s N( t __name__t
__module__t FalseR t NoneR R
R
R ( ( ( s; /usr/lib/python2.7/dist-packages/twisted/test/test_socks.pyR s
t FakeResolverReactorc B s e Z d Z d „ Z d „ Z RS( sP
Bare-bones reactor with deterministic behavior for the resolve method.
c C s
| | _ d S( sÃ
@type names: C{dict} containing C{str} keys and C{str} values.
@param names: A hostname to IP address mapping. The IP addresses are
stringified dotted quads.
N( t names( R R ( ( s; /usr/lib/python2.7/dist-packages/twisted/test/test_socks.pyt __init__% s c C sD y t j | j | ƒ SWn% t k
r? t j t d | ƒ ƒ SXd S( sQ
Resolve a hostname by looking it up in the C{names} dictionary.
s"