mō ŠËŽGc@s>dkTdkTdefd„ƒYZdefd„ƒYZdS((t*t UsePortNumbercBsYtZdZdZdZd„Zd„Zd„Zd„Zd„Z d „Z d „Z RS( Nsbind a socket to ports-test if a socket can be bound to a given portsBind a Socket to PortcCs ||_dS(N(tporttselft_port(RR((tb/home/faculty/youssef/public_html/pacman/sample_cache/tarballs/pre/tmp/pacman-3.29/src/TCPPorts.pyt__init__ scCs|i|ijS(N(RRtx(RR((RtequalscCs|i S(N(RR(R((RtstrscCst| d|i ƒS(Ns has not been tested yet.(tReasonRtacquired(R((Rt satisfiedscCsUtidd|i dƒt|iƒ}|djo tƒ}n t|ƒ}|S(Nttcps!Try binding a socket to TCP port s...t(tverbotlogRRttryServerSockettmsgR tr(RRR((Rtacquires   cCstƒS(N(R (R((RtretractscCs |iƒS(N(RR(R((Rtverifys( t__name__t __module__ttypetactionttitleRRR R RRR(((RRs      tTCPPortscBsetZdZdZdZdeiƒd„Zd„Zd„Z d„Z d „Z d „Z d „Z RS( NttcpPortsstest TCP port rangesTCP Port RangesicCs?||_||_||_|idjo|i|_ndS(Ni(thostRt_TCPPorts__hostt portFirstt_TCPPorts__firsttportLastt_TCPPorts__last(RR R"R((RR$s    cCs6|i|ijo#|i|ijo|i|ijS(N(RRttprR!R#(RR$((RR*scCs#d|i d|i d|iS(Nt[t,s] to (RR!R#R(R((RR -scCstƒS(N(R (RR$((Rt compatible0scCst| d|i ƒS(Ns has not been tested yet.(R RR (R((RR 3scCsētƒ}t|i|idƒ}g}xK|D]C}t i dd| dƒt |i |ƒp|i |ƒq/q/Wt|ƒdjo%|id| d|i dƒn|S( NiR sChecking TCP port s...is TCP ports s are not open to t.(R treasontrangeRR!R#RtnotopenRRRt checkTCPPortRtappendtlen(RR)RR+R((RR6s %cCstƒS(N(R (R((RRAs(RRRRRtsockett gethostnameRRR R'R RR(((RRs     N(t Environmentt scanPortsRR(RR((Rt?s