Beispiel #1
0
 def read_banner(self):
     data = pyknc.knc_read(self.conn, 1024)
     p = pyarrayhash.parse_init()
     while 1:
         obj = pyarrayhash.parse(p, data)
         if obj:
             break
         data = pyknc.knc_read(self.conn, 1024)
     self.banner = True
     return obj
Beispiel #2
0
 def read(self, ln):
     return pyknc.knc_read(self.conn, ln)