Re: [SAM] New Version draft common multicast API

Gustavo Carneiro <gjcarneiro@gmail.com> Mon, 13 September 2010 15:40 UTC

Return-Path: <gjcarneiro@gmail.com>
X-Original-To: sam@core3.amsl.com
Delivered-To: sam@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D40F33A69F8 for <sam@core3.amsl.com>; Mon, 13 Sep 2010 08:40:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.486
X-Spam-Level: *
X-Spam-Status: No, score=1.486 tagged_above=-999 required=5 tests=[BAYES_50=0.001, HTML_FONT_FACE_BAD=0.884, HTML_MESSAGE=0.001, J_CHICKENPOX_73=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6G00t71d4ypU for <sam@core3.amsl.com>; Mon, 13 Sep 2010 08:40:53 -0700 (PDT)
Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by core3.amsl.com (Postfix) with ESMTP id EF9D03A6A01 for <sam@irtf.org>; Mon, 13 Sep 2010 08:40:50 -0700 (PDT)
Received: by qwg5 with SMTP id 5so3895832qwg.13 for <sam@irtf.org>; Mon, 13 Sep 2010 08:41:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=GKrVXunBbphauGef3Q0KMP+3CUNW23TKkfrkK78kHuc=; b=Z04FaTil6rT5poE4zXD5DLO48XNyB6H/79Gm6mmnkcPvKIXuQhO1WyGGURRRHHzlZN bV4xWK426qUtHk5qpTdO0oREm2woM/Mgv+nIyBzClr7YYJg/NWHYIChc5OEe1GZTNHqI 2ztDGUhPF6W894bFaaXV6KFZMblYUCMHBAbq4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eQ4aHoP+F9VZS3bhEqahBhb6v0Nyr6wlNIteBhyz050+FDMceIDEKRZjswC0jmf8Nw 0ZQYsxBTyu4JRLObvxjpMA+5Oow787fH40oD/fTMZHiWVxchjOjrAzvcMH42rFvwNLyA roaXkya6PBjS0PQIB4NPBgIHFf4FupoWlGuhw=
MIME-Version: 1.0
Received: by 10.229.11.14 with SMTP id r14mr2932968qcr.228.1284392475416; Mon, 13 Sep 2010 08:41:15 -0700 (PDT)
Received: by 10.229.183.78 with HTTP; Mon, 13 Sep 2010 08:41:15 -0700 (PDT)
In-Reply-To: <Pine.WNT.4.64.1007282319420.6068@mw-thinkpad>
References: <Pine.WNT.4.64.1007282319420.6068@mw-thinkpad>
Date: Mon, 13 Sep 2010 16:41:15 +0100
Message-ID: <AANLkTi=wa6DbLFz2VXZ4ZdbSMTkPJR1rAg2pBH=oT11M@mail.gmail.com>
From: Gustavo Carneiro <gjcarneiro@gmail.com>
To: Matthias Waehlisch <waehlisch@ieee.org>
Content-Type: multipart/alternative; boundary="0016364ec8843fdb35049025ed01"
Cc: sam <sam@irtf.org>
Subject: Re: [SAM] New Version draft common multicast API
X-BeenThere: sam@irtf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "For use by members of the Scalable Adaptive Multicast \(SAM\) RG" <sam.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/listinfo/sam>, <mailto:sam-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/sam>
List-Post: <mailto:sam@irtf.org>
List-Help: <mailto:sam-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/sam>, <mailto:sam-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Sep 2010 15:40:56 -0000

On Wed, Jul 28, 2010 at 22:22, Matthias Waehlisch <waehlisch@ieee.org>wrote:

> Hi all,
>
>  we submitted an updated version of the draft "A Common API for
> Transparent Hybrid Multicast":
>
>  * http://www.ietf.org/id/draft-waehlisch-sam-common-api-04.txt
>
>  This includes the following changes:
>
>   1.  Use cases added for illustration.
>
>   2.  Service calls added for inquiring on the multicast distribution
>       system.
>
>   3.  Namespace examples added.
>
>   4.  Clarifications and editorial improvements.
>
>
>  Comments are very welcome!
>

Hi,

I am proposing to use/implement a subset of this API inside a european
research project; let's see how it goes.

I have a question regarding the send() API.


4.3.2.  Receive


>    The receive call passes multicast data and the corresponding Group

   Name to the application.


>        int receive(int s, const uri group_name,

                   size_t msg_len, msg *msg_buf);


>    The s argument identifies the multicast socket.


>    The group_name argument identifies the multicast group for which data

   was received.


>    The msg_len argument holds the length of the received message.


>    The msg_buf argument points to the payload of the received multicast

   data.


>    On success the value 0 is returned, otherwise -1.



Is this a synchronous call?  What if there are multiple multicast sockets to
listen to, we need to create a separate thread for each?

I think we could use a select/poll/WaitForMultipleObjects equivalent for the
abstract multicast sockets.  I'd be happy to contribute text or ideas to
this end if you think is a good idea.

Best regards.

-- 
Gustavo J. A. M. Carneiro
INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc
"The universe is always one step beyond logic." -- Frank Herbert