From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeMd1-000838-QU for qemu-devel@nongnu.org; Tue, 22 Sep 2015 08:25:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeMcy-000110-L2 for qemu-devel@nongnu.org; Tue, 22 Sep 2015 08:24:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeMcy-00010v-Fc for qemu-devel@nongnu.org; Tue, 22 Sep 2015 08:24:56 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 05862341AC2 for ; Tue, 22 Sep 2015 12:24:56 +0000 (UTC) Date: Tue, 22 Sep 2015 13:24:52 +0100 From: "Daniel P. Berrange" Message-ID: <20150922122452.GN28888@redhat.com> References: <1442582350-9179-1-git-send-email-berrange@redhat.com> <1442582350-9179-8-git-send-email-berrange@redhat.com> <5601474F.2000507@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5601474F.2000507@redhat.com> Subject: Re: [Qemu-devel] [PATCH v1 07/16] io: add abstract QIOChannel classes Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Gerd Hoffmann , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" On Tue, Sep 22, 2015 at 02:19:27PM +0200, Paolo Bonzini wrote: > > > On 18/09/2015 15:19, Daniel P. Berrange wrote: > > + QIO_CHANNEL_FEATURE_FD_PASS = (1 << 0), > > + QIO_CHANNEL_FEATURE_SHUTDOWN = (1 << 1), > > + QIO_CHANNEL_FEATURE_DELAY = (1 << 2), > > + QIO_CHANNEL_FEATURE_CORK = (1 << 3), > > TCP_NODELAY and TCP_CORK are just hints; I think it is okay to just > ignore them if not supported. You obviously disagree, so the question > is why? :) Well I was just trying not to second guess what future uses we might have of the QIOChannel API, so I went for the approach of providing a way to probe any optional features upfront. Code doesn't have to use this if it doesn't want to - it can just ignore errors from the API call later. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|