All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Bthid question
@ 2003-11-28  9:24 Gareth Reakes
  2003-11-28 13:25 ` Marcel Holtmann
  0 siblings, 1 reply; 11+ messages in thread
From: Gareth Reakes @ 2003-11-28  9:24 UTC (permalink / raw)
  To: bluez-users

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-11-28 23:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-28  9:24 [Bluez-users] Bthid question Gareth Reakes
2003-11-28 13:25 ` 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

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.