socket_client_basic: check return of connect()