All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vlad Yasevich <vyasevich@gmail.com>
To: linux-sctp@vger.kernel.org
Subject: Re: one-to-many question
Date: Thu, 15 Aug 2013 18:50:51 +0000	[thread overview]
Message-ID: <520D230B.1040002@gmail.com> (raw)
In-Reply-To: <520CAC87.5020402@skyge.com>

On 08/15/2013 11:13 AM, Michael Tuexen wrote:
> On Aug 15, 2013, at 1:42 PM, Daniel Borkmann <dborkman@redhat.com> wrote:
>
>> On 08/15/2013 12:25 PM, xiong wei wrote:
>>> Hi, experts
>>>
>>> For one-to-many mode. Suppose I have a socket which contain several
>>> associations in it. that means there are several clients connect with
>>> server.
>>>
>>> If I use sendmsg(...) function to send msg from server, How does sctp
>>> identify which association will receive the data? Does all clients will
>>> receive the msg?
>>>
>>> And, Does sctp provide a way for server to send msg to all associations
>>> in one syscall ?
>>
>> Neil Horman wrote:
>>
>> The receiving association is specified in either the msg_name field of the
> Can you specify on Linux an sctp_assoc_t? Or would you specify one of the
> remote IP addresses? Specifying an sctp_assoc_t would be Linux specific,
> I guess. At least this isn't covered by
> http://tools.ietf.org/html/rfc6458
> as far as I know.

msg_name would contain the address, not the association id.

-vlad
>
> Best regards
> Michael
>> message header or the association id field of the sndrcv_info cmsg header in the
>> datagram.  IIRC there is no was to send to all associations at once in a single
>> syscall, unless you want to marshall up all the data and pass it down via the
>> sendmmsg syscall, which I don't think lksctp-tools supports yet (though that
>> would be a nice feature).
>> Neil
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


  parent reply	other threads:[~2013-08-15 18:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-15 10:25 one-to-many question xiong wei
2013-08-15 11:42 ` Daniel Borkmann
2013-08-15 11:42 ` Michael Tuexen
2013-08-15 15:13 ` Michael Tuexen
2013-08-15 17:28 ` Neil Horman
2013-08-15 18:50 ` Vlad Yasevich [this message]
2013-08-15 19:02 ` Michael Tuexen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=520D230B.1040002@gmail.com \
    --to=vyasevich@gmail.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.