³ò ¢l‡Jc@sRdZddkZddkTeZy ddkZddkTeZWnej onXddkZddkZyddk l Z Wnej o dZ nXdgZ e i ei eƒƒeoe i ei eƒƒneZeoeZddd„Zneiiƒidƒo­hZd ed socket object Return a new socket object connected to the same system resource.R(R4R(R;((s/sys/lib/python/socket.pytdup«striÿÿÿÿcCst|i||ƒS(s¾makefile([mode[, bufsize]]) -> file object Return a regular file object corresponding to the socket. The mode and bufsize arguments are as for the built-in open() function.(t _fileobjectR(R;tmodetbufsize((s/sys/lib/python/socket.pytmakefile±scCs |iiS((RR<(R;((s/sys/lib/python/socket.pyt¸stdocsthe socket familycCs |iiS((RR=(R;((s/sys/lib/python/socket.pyRK¹ssthe socket typecCs |iiS((RR>(R;((s/sys/lib/python/socket.pyRKºssthe socket protocolsVdef %s(self, *args): return self._sock.%s(*args) %s.__doc__ = _realsocket.%s.__doc__ N(R0R1R7t__doc__tlistR8R2tAF_INETt SOCK_STREAMR6R@RBRCRERJtpropertyR<R=R>t_st_socketmethodst_m(((s/sys/lib/python/socket.pyR4’s"    RGc BsÝeZdZdZdZddddddd d d g Zd d ed„Zd„Ze eddƒZ d„Z d„Z d„Z d„Zd„Zd„Zd„Zd d„Zd d„Zdd„Zd„Zd„ZRS(s-Faux file object attached to a socket object.i sRHRIt softspaceRt _rbufsizet _wbufsizet_rbuft_wbuft_closetrbiÿÿÿÿcCs¦||_||_|djo |i}n||_t|_|djo d|_n'|djo|i|_n ||_||_d|_g|_ ||_ dS(NiiR ( RRHtdefault_bufsizeRItFalseRURVRWRXRYRZ(R;RRHRIRB((s/sys/lib/python/socket.pyR@Ïs             cCs |idjS(N(RR6(R;((s/sys/lib/python/socket.pyt _getclosedásRLsTrue if the file is closedcCsHz|io|iƒnWd|io|iiƒnd|_XdS(N(RtflushRZRBR6(R;((s/sys/lib/python/socket.pyRBås   cCsy|iƒWnnXdS(N(RB(R;((s/sys/lib/python/socket.pyt__del__îscCs=|io/di|iƒ}g|_|ii|ƒndS(NR (RYtjoinRR (R;tbuffer((s/sys/lib/python/socket.pyR_õs  cCs |iiƒS(N(RR(R;((s/sys/lib/python/socket.pyRûscCs€t|ƒ}|pdSn|ii|ƒ|idjp3|idjo d|jp|iƒ|ijo|iƒndS(Niis (tstrRYtappendRWt _get_wbuf_lenR_(R;tdata((s/sys/lib/python/socket.pytwriteþs cCsZ|iitdtt|ƒƒƒ|idjp|iƒ|ijo|iƒndS(Ni( RYtextendtfilterR6tmapRcRWReR_(R;RN((s/sys/lib/python/socket.pyt writeliness"cCs.d}x!|iD]}|t|ƒ7}qW|S(Ni(RYtlen(R;tbuf_lentx((s/sys/lib/python/socket.pyRes  cCs±|i}|djo˜g}|o|i|ƒnd|_|idjo |i}n |i}x7to/|ii|ƒ}|pPn|i|ƒqfWdi|ƒSnt|ƒ}||jo|||_|| Sng}|o|i|ƒnd|_x–toŽ||}t |i|ƒ}|ii|ƒ}|pPn|i|ƒt|ƒ}||jo |||_|| |d+sj                       0