From: Marcel Holtmann <marcel@holtmann.org>
To: tim.howes@accenture.com
Cc: linux-bluetooth@vger.kernel.org
Subject: RE: [PATCH 2/2] Bluetooth: FTP and OPP over L2CAP
Date: Wed, 15 Jun 2011 07:21:24 -0700 [thread overview]
Message-ID: <1308147687.2196.3.camel@aeonflux> (raw)
In-Reply-To: <1AFE20D16950C745A2A83986B72E87480132148C3622@EMEXM3131.dir.svc.accenture.com>
Hi Tim,
> > +enum obex_transport_format{
> > + OBEX_MT_STREAM ,
> > + OBEX_MT_SEQPACKET
> > +};
> > +
> > And more important, I have no idea why are you doing this anyway. Even
> > with L2CAP this should run over SOCK_STREAM.
>
> Is that really so? I expect exposing L2CAP ERTM as a stream could break protocols above that expect datagram-boundary preservation (eg RTP). Or can break protocols that mandate that only one higher-layer packet exists in each L2CAP SDU. For these the socket needs to be packet based.
>
> So, my surprise is that ERTM is exposed as SOCK_STREAM. So I do have an idea why the patch mentions sequenced packet...
you can do both for ERTM actually. You can create SOCK_SEQPACKET and
have it negotiate ERTM. However you can not run SOCK_STREAM on a Basic
Mode connection.
But the real benefit for higher layer protocols is if you become a
SOCK_STREAM. Because you are MTU free now. Using SOCK_SEQPACKET with
ERTM or Basic Mode is not really much of a difference.
Especially with OBEX that has its own MTU anyway in the first place has
always been run on SOCK_STREAM so far, what is the different that you
expect by running it of SOCK_SEQPACKET with ERTM?
Regards
Marcel
next prev parent reply other threads:[~2011-06-15 14:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 3:54 [PATCH 2/2] Bluetooth: FTP and OPP over L2CAP Nami
2011-06-15 11:17 ` Marcel Holtmann
2011-06-15 12:24 ` tim.howes
2011-06-15 14:21 ` Marcel Holtmann [this message]
2011-06-15 15:01 ` Piotr Zgórecki
[not found] <1AFE20D16950C745A2A83986B72E87480132148C3626@EMEXM3131.dir.svc.accenture.com>
2011-06-15 12:48 ` piotr.zgorecki
2011-06-16 2:41 ` Li, Nami
[not found] <56CE5C6D2B8C7844B3FD6D5DDA55523D3E8FFE6371@EMEXM3125.dir.svc.accenture.com>
2011-06-15 13:21 ` Piotr Zgórecki
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=1308147687.2196.3.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=tim.howes@accenture.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox