The scanner for ports with nonblocking mode (select)