def _read_compat(self): fd_set = types.mkfdset(self.fileno()) lib.snmp_sess_read(self.sessp, fd_set)
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))