示例#1
0
 def _read_compat(self):
     fd_set = types.mkfdset(self.fileno())
     lib.snmp_sess_read(self.sessp, fd_set)
示例#2
0
 def _timeout_compat(self, tv, block):
     fd_max = ctypes.c_int()
     fd_set = types.mkfdset(self.fileno())
     lib.snmp_sess_select_info(self.sessp, byref(fd_max), fd_set, byref(tv), byref(block))