implemented ipv4 connection management with select