From: Jui-Hao Chiang <windtracekimo@gmail.com>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] How to know the packet loss ratio of SCO socket
Date: Fri, 15 Aug 2008 13:42:23 +0000 (UTC) [thread overview]
Message-ID: <loom.20080815T133352-774@post.gmane.org> (raw)
Hi, all:
as the title said, I am writing a simple server-client socket program for SCO
connection. While client is sending the SCO packet to server, it attaches a
sequence number to it. Then I want server to estimate the packet loss.
[Client program is as the following]
for (i = 0; i < 48, i++) buf[i] = 0x7f;
while (1) {
*(uint32_t *)buf = htobl(seq);
*(uint32_t *)(buf+4) = htobs(48);
if (send(sockfd, buf, 48, 0) < 0) break;
seq++;
usleep(1)
}
However, on the server side, the data is total different, and I am not able to
get the sequence number (the hcidump -x also shows different data content as I
expect. Also, it's weird that the content is repeated)
Is this data encoded? or is there anyway to know the packet loss ratio of the
SCO connection?
Bests,
Jui-Hao
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next reply other threads:[~2008-08-15 13:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 13:42 Jui-Hao Chiang [this message]
2008-08-15 13:50 ` [Bluez-devel] How to know the packet loss ratio of SCO socket Jui-Hao Chiang
2008-08-15 17:26 ` Marcel Holtmann
2008-08-15 18:50 ` Jui-Hao Chiang
2008-08-18 5:10 ` Marcel Holtmann
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=loom.20080815T133352-774@post.gmane.org \
--to=windtracekimo@gmail.com \
--cc=bluez-devel@lists.sourceforge.net \
/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