Linux bluetooth development
 help / color / mirror / Atom feed
From: "Eric Munson" <ebmunson@gmail.com>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Programming in C with Bluetooth Sockets
Date: Wed, 19 Apr 2006 23:46:29 -0700	[thread overview]
Message-ID: <c6a2f99a0604192346k686af0b9i969f44d128ab289c@mail.gmail.com> (raw)
In-Reply-To: <c6a2f99a0604191341g706c5a51la3e737f67a1dcdd2@mail.gmail.com>

That did solve the problem, thanks again for catching such a silly mistake.

Eric

On 4/19/06, Eric Munson <ebmunson@gmail.com> wrote:
> Thanks very much for catching this, I believe that it is the problem.
> I will change my code and give it a try.
>
> Eric
>
> On 4/19/06, Albert Huang <albert@csail.mit.edu> wrote:
> >
> >
> > >                bytes_read =3D read(client, buf + count, sizeof(buf) -
> > count);
> >
> >
> > sizeof(buf) will always return  4 because buf was allocated as a char* =
and
> > not a char[]
> > So it's never trying to read more than 4 bytes at a time
> >
> > -albert
> >
> >
>


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2006-04-20  6:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-19  2:25 [Bluez-users] Programming in C with Bluetooth Sockets Eric Munson
2006-04-19  4:18 ` Sowmya Gattupalli
2006-04-19 15:04   ` Eric Munson
2006-04-19 16:50     ` Sowmya Gattupalli
2006-04-19 16:56     ` Albert Huang
2006-04-19 18:26       ` Eric Munson
2006-04-19 18:32         ` Albert Huang
2006-04-19 20:41           ` Eric Munson
2006-04-20  6:46             ` Eric Munson [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=c6a2f99a0604192346k686af0b9i969f44d128ab289c@mail.gmail.com \
    --to=ebmunson@gmail.com \
    --cc=bluez-users@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