#NEWLINE# def send( self , conn_id , buf ) : #NEWLINE# #INDENT# send_size = self . connections [ conn_id ] . can_send ( ) #NEWLINE# if ( send_size > 0 ) : #NEWLINE# #INDENT# self . stopped . discard ( conn_id ) #NEWLINE# self . link . send ( self , buf [ : send_size ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . stopped . add ( conn_id )