examples/rpc-server.py
def send_output(self):
        """Called when socket is write-ready"""
        try:
            pyngus.write_socket_output(self.connection,
                                       self.socket)
        except Exception as e:
            LOG.error("Exception on socket write: %s", str(e))
            self.connection.close_output()
            self.connection.close()
        self.connection.process(time.time())
def send_output(self):
        try:
            pyngus.write_socket_output(self.connection,
                                       self.socket)
        except Exception as e:
            LOG.error("Exception on socket write: %s", str(e))
            self.connection.close_output()
            self.connection.close()
        self.connection.process(time.time())
def send_output ( self ) : try : pyngus . write_socket_output ( self . connection , self . socket ) except Exception as e : LOG . error ( "Exception on socket write: %s" , str ( e ) ) self . connection . close_output ( ) self . connection . close ( ) self . connection . process ( time . time ( ) )
Called when socket is write-ready
Called when socket is write - ready