%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/tornado/platform/ |
| Current File : //proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/tornado/platform/common.pyc |
�
��L]c @� sm d Z d d l m Z m Z m Z m Z d d l Z d d l Z d d l m Z d e j
f d � � YZ
d S( sD Lowest-common-denominator implementations of platform functionality.i ( t absolute_importt divisiont print_functiont with_statementN( t interfacet Wakerc B� sD e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� Create an OS independent asynchronous pipe.
For use on platforms that don't have os.pipe() (or where pipes cannot
be passed to select()), but do have sockets. This includes Windows
and Jython.
c C� s^ t j � | _ | j j t j t j d � d } x� | d 7} t j � } | j d � | j d � | j � } y | j j | � PWq4 t j k
r} t
t d � s� | d t j k r� � n | d k r� | j
� | j j
� t j d � � n | j
� q4 Xq4 | j � \ | _ } | j j d � | j j d � | j
� | j j � | _ d S( Ni i s 127.0.0.1t
WSAEADDRINUSEi
s Cannot bind trigger!( s 127.0.0.1i ( t sockett writert
setsockoptt IPPROTO_TCPt TCP_NODELAYt bindt listent getsocknamet connectt errort hasattrt errnoR t closet acceptt readert setblockingt filenot reader_fd( t selft countt at connect_addresst detailt addr( ( s= /usr/lib64/python2.7/site-packages/tornado/platform/common.pyt __init__ s4
c C� s
| j j � S( N( R R ( R ( ( s= /usr/lib64/python2.7/site-packages/tornado/platform/common.pyR E s c C� s
| j j � S( N( R R ( R ( ( s= /usr/lib64/python2.7/site-packages/tornado/platform/common.pyt write_filenoH s c C� s5 y | j j d � Wn t t j f k
r0 n Xd S( Nt x( R t sendt IOErrorR R ( R ( ( s= /usr/lib64/python2.7/site-packages/tornado/platform/common.pyt wakeK s c C� sN y- x&