From: Paolino paperino <vonzoltan@yahoo.it>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] [ECONNRESET]Problem with last buffer readed with a read or recv
Date: Fri, 22 Oct 2004 17:13:32 +0200 (CEST) [thread overview]
Message-ID: <20041022151332.19433.qmail@web40624.mail.yahoo.com> (raw)
In-Reply-To: <1098443254.4704.42.camel@pegasus>
--- Marcel Holtmann <marcel@holtmann.org> ha scritto:
> Hi Andrea,
...
> the line "addr.rc_channel = htobs(10);" is wrong,
> because rc_channel is
> only a uint8_t and so you don't need any byte
> swapping magic. Remove the
> call to htobs() and simply set the channel number.
>
> On the server side you forgot to init clientAddrLen
> before you called
> accept(). Do a "clientAddrLen = sizeof(clientAddr);"
> first.
Thanks for the hint i haven't looked at this
particular..i didn't know.
>
> for me this looks ok, because you close the
> connection from the server
> side and recv returns with an error. Does it makes
> any difference when
> you use read/write instead of recv/send?
Yes also using read/write i get the same behaviour
> For this behaviour you must send me a kernel patch
> that implements this,
> but I will only accept it if you change the L2CAP in
> the same way.
For the moment i think i'm not a kernel hacker :-(
> Regards
>
> Marcel
Thanks Marcel for the time spent
Best regards
Andrea S.
___________________________________
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
Scaricalo ora!
http://it.messenger.yahoo.it
prev parent reply other threads:[~2004-10-22 15:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-20 14:01 [Bluez-users] [ECONNRESET]Problem with last buffer readed with a read or recv Paolino paperino
2004-10-20 16:13 ` Marcel Holtmann
2004-10-20 19:15 ` Collin R. Mulliner
2004-10-22 8:03 ` Paolino paperino
2004-10-22 11:07 ` Marcel Holtmann
2004-10-22 15:13 ` Paolino paperino [this message]
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=20041022151332.19433.qmail@web40624.mail.yahoo.com \
--to=vonzoltan@yahoo.it \
--cc=bluez-users@lists.sourceforge.net \
--cc=marcel@holtmann.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox