#NEWLINE# def put( self , data , block = True ) : #NEWLINE# #INDENT# ' If there is space it sends data to server\n\n        If no space in the queue\n\n        It returns the request in every 10 millisecond\n\n        until there will be space in the queue.\n\n        ' #NEWLINE# self . start ( test_connection = False ) #NEWLINE# while True : #NEWLINE# #INDENT# response = self . _req_rep ( QueuingServerMessageListener . SPACE ) #NEWLINE# if ( response == QueuingServerMessageListener . SPACE_AVAILABLE ) : #NEWLINE# #INDENT# self . _req_rep ( ( QueuingServerMessageListener . DATA , self ) ) #NEWLINE# break #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# time . sleep ( 0.01 )