All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gareth Reakes <gareth@apache.org>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Bthid question
Date: Fri, 28 Nov 2003 01:24:00 -0800 (PST)	[thread overview]
Message-ID: <20031128011412.C61007@minotaur.apache.org> (raw)

Hey,
	in Marcels version of bthid it seem we go around the while in the
worker method until __io_canceled. At this point we then close the sockets
with a sleep in between them to avoid the ACL connection problem. I added
in some sleeps into Peters code and this made no difference. After looking
into this further (by putting debug at every close statement), a close is
not called after

} else if (!nbytes) {
syslog (LOG_NOTICE, "EOF on Interrupt channel");
shut_down (EXIT_SUCCESS);
}


and my mouse thinks this ACL connection is still open. I have 2 questions:


1)When __io_canceled is true, is this the same as (or at least a case of)
when the above code is called (IE when the mouse goes to sleep)?

2)Why is it in Marcels bthid code that the control and interrupt channels
are shut down in different a order depending on if __io_canceled is true
or not?



Cheers,

Gareth


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

             reply	other threads:[~2003-11-28  9:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-28  9:24 Gareth Reakes [this message]
2003-11-28 13:25 ` [Bluez-users] Bthid question Marcel Holtmann
2003-11-28 14:07   ` Gareth Reakes
2003-11-28 15:01     ` Marcel Holtmann
2003-11-28 15:06       ` Gareth Reakes
2003-11-28 21:07         ` Gareth Reakes
2003-11-28 22:19           ` Marcel Holtmann
2003-11-28 22:38             ` Gareth Reakes
2003-11-28 23:10               ` Marcel Holtmann
2003-11-28 23:26                 ` Gareth Reakes
2003-11-28 23:37                   ` 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=20031128011412.C61007@minotaur.apache.org \
    --to=gareth@apache.org \
    --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 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.