예제 #1
0
 def status(self):
     lines = ['<h2>%s</h2>' % self.SERVER_IDENT,
              '<br>Listening on Port: %d' % self.port,
              '<br><b>Total Sessions:</b> %d' % self.count,
              '<br><b>Current Sessions:</b> %d' % (len(self.channels))
              ]
     return status_handler.lines_producer(lines)
예제 #2
0
 def status (self):
     lines = [
             '<h2>%s</h2>'                                           % self.SERVER_IDENT,
             '<br>Listening on Port: %d'                     % self.port,
             '<br><b>Total Sessions:</b> %d'         % self.count,
             '<br><b>Current Sessions:</b> %d'       % (len(self.channels))
             ]
     return status_handler.lines_producer (lines)