siplify _io_socket_connect()