ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ A[c@`sdZddlmZddlmZddlmZddlmZddlmZddlZddlTddl Z ddl Z ddl Z yddl Z Wne k rdZ nXee d d Zee d d Zee d d ZddgZeje jeeZe jjjdriZded socket object Return a new socket object connected to the same system resource. R(tdupRRRRRt settimeoutt gettimeout(R tfdtsock((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyRs$cC`sh|j\}}t|j|j|jd|}tdkr^|jr^|jt n||fS(uaccept() -> (socket object, address info) Wait for an incoming connection. Return a new socket representing the connection, and the address of the client. For IP sockets, the address info is a pair (hostaddr, port). RN( t_acceptRRRRtgetdefaulttimeoutRR!t setblockingtTrue(R R"taddrR#((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytaccepts !urcK`sd|kr |d}|d=nd }d|krF|d}|d=nd }d|krl|d}|d=nd }x)|D]!}|dkrytdqyqyWd|k}d|kp| } | s|std|k} d} | r| d7} n|r| d7} nt|| } |jd 7_|d kr:d }n|d krRtj}n|d krw| sstd n| S| r|rtj| | |} n9| rtj| |} n|sttj | |} | r| Stj | |||}||_ |S(u makefile(...) -> an I/O stream connected to the socket The arguments are as for io.open() after the filename, except the only mode characters supported are 'r', 'w' and 'b'. The semantics are similar too. (XXX refactor to share code?) unewlineuerrorsuencodinguruwubu&invalid mode %r (only r, w, b allowed)uiiiu!unbuffered streams must be binaryN(uruwub( Rt ValueErrortAssertionErrortSocketIOR tiotDEFAULT_BUFFER_SIZEtBufferedRWPairtBufferedReadertBufferedWritert TextIOWrappertmode(R R3t bufferingt _3to2kwargstnewlineterrorstencodingtctwritingtreadingtbinarytrawmodetrawtbufferttext((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytmakefilesZ                 cC`s;|jdkr!|jd8_n|jr7|jndS(Nii(R R R(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyt_decref_socketioss cC`s|j|dS(N(R(R t_ss((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyt _real_closescC`s)t|_|jdkr%|jndS(Ni(R'R R RD(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyRs cC`st|_tjS(u detach() -> file descriptor Close the socket object without closing the underlying file descriptor. The object cannot be used after this call, but the file descriptor can be reused for other purposes. The file descriptor is returned. (R'R Rtdetach(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyREs N(RRt__doc__t __slots__tAF_INETt SOCK_STREAMRR RRRRRR)RARBRRRDRRE(((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyR]s    0  cC`st|}t||||S(u fromfd(fd, family, type[, proto]) -> socket object Create a socket object from a duplicate of the given file descriptor. The remaining arguments are the same as for socket(). (RR(R"RRRtnfd((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytfromfds usharecC`stddd|S(u fromshare(info) -> socket object Create a socket object from a the bytes object returned by socket.share(pid). i(R(tinfo((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyt fromsharesu socketpaircC`s|dkr3y t}Wq3tk r/t}q3Xntj|||\}}t||||j}t||||j}||fS(uasocketpair([family[, type[, proto]]]) -> (socket object, socket object) Create a pair of socket objects from the sockets returned by the platform socketpair() function. The arguments are the same as for socket() except the default family is AF_UNIX if defined on the platform; otherwise, the default is AF_INET. N(RtAF_UNIXt NameErrorRHRt socketpairRRE(RRRtatb((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyRPs    R,cB`steZdZdZdZdZdZdZdZdZ e dZ e d Z d Z RS( uRaw I/O implementation for stream sockets. This class supports the makefile() method on sockets. It provides the raw I/O interface on top of a socket object. cC`s|d krtd|ntjj|||_d|krQ|d7}n||_d|k|_d|k|_t|_ dS( Nuruwurwurbuwburwbuinvalid mode: %rub(uruwurwurbuwburwb( R*R-t RawIOBaseR t_sockt_modet_readingt_writingR t_timeout_occurred(R R#R3((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyR s     cC`s|j|j|jr,tdnxjtry|jj|SWq/tk rht|_q/tk r}|j dt krdSq/Xq/WdS(u3Read up to len(b) bytes into the writable buffer *b* and return the number of bytes read. If the socket is non-blocking and no bytes are available, None is returned. If *b* is non-empty, a 0 return value indicates that the connection was shutdown at the other end. u!cannot read from timed out objectiN( t _checkClosedt_checkReadableRXtIOErrorR'RTt recv_intottimeoutterrorRt_blocking_errnosR(R RRte((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytreadinto)s      cC`s\|j|jy|jj|SWn-tk rW}|jdtkrQdSnXdS(uWrite the given bytes or bytearray object *b* to the socket and return the number of bytes written. This can be less than len(b) if not all data could be written. If the socket is non-blocking and no bytes could be written None is returned. iN(RYt_checkWritableRTtsendR^RR_R(R RRR`((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytwriteBs  cC`s|jrtdn|jS(u2True if the SocketIO is open for reading. uI/O operation on closed socket.(tclosedR*RV(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytreadableRs cC`s|jrtdn|jS(u2True if the SocketIO is open for writing. uI/O operation on closed socket.(ReR*RW(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytwritableYs cC`s%|jrtdntjS(u2True if the SocketIO is open for seeking. uI/O operation on closed socket.(ReR*Rtseekable(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyRh`s cC`s|j|jjS(u=Return the file descriptor of the underlying socket. (RYRTR(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyRgs cC`s|js|jSdSdS(Ni(ReR(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytnamems  cC`s|jS(N(RU(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyR3tscC`s7|jr dStjj||jjd|_dS(uClose the SocketIO object. This doesn't close the underlying socket, except if all references to it have disappeared. N(ReR-RSRRTRBR(R ((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyRxs   (RRRFR RaRdRfRgRhRtpropertyRiR3R(((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyR, s      ucC`s|j}| s|dkr+t}nyt|\}}}Wntk rWn8X|jd|x$|D]}d|kroPqoqoW|}|S(uGet fully qualified domain name from name. An empty argument is interpreted as meaning the local host. First the hostname returned by gethostbyaddr() is checked, then possibly existing aliases. In case no FQDN is available, hostname from gethostname() is returned. u0.0.0.0iu.(tstript gethostnamet gethostbyaddrR^tinsert(Rithostnametaliasestipaddrs((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytgetfqdns     (t_GLOBAL_DEFAULT_TIMEOUTcC`s|\}}d}xt||dtD]}|\}}} } } d} yYt||| } |tk rz| j|n|r| j|n| j| | SWq(tk r} | }| dk r| j qq(Xq(W|dk r|n tddS(udConnect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. iu!getaddrinfo returns an empty listN( Rt getaddrinfoRIRRsR tbindtconnectR^R(taddressR]tsource_addressthosttportterrtrestaftsocktypeRt canonnametsaR#t_((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pytcreate_connections(      ()RFt __future__RRRRtfuture.builtinsRRtostsysR-terrnot ImportErrorRRtEBADFtEAGAINt EWOULDBLOCKt__all__textendt_get_exports_listRt _realsockettplatformtlowerRterrorTabtappendRKthasattrRMRIRPtsetR_RSR,RrRsR(((sH/opt/alt/python27/lib/python2.7/site-packages/future/backports/socket.pyt-s`  $                    w