All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Help with L2CAP sockets
@ 2005-04-29  6:19 Mayank Sharma
  2005-04-29  6:46 ` [Bluez-devel] 答复: " gao.yingbin
  2005-04-29  9:39 ` Marcel Holtmann
  0 siblings, 2 replies; 3+ messages in thread
From: Mayank Sharma @ 2005-04-29  6:19 UTC (permalink / raw)
  To: bluez-devel

Hi all,
  I am developing an application using the L2CAP sockets provided by 
BlueZ. I am creating a pool of sockets and listening to all of them 
simultaneously. To avoid spawning of a thread for each socket, i tried 
using the async capabilities of the socket. I set the FASYNC flag using 
the ioctl to the socket, and set my pid to it. Thereafter i get a SIGIO 
whenever data is available on any of the socket. Everything seems fine 
except for disconnection. When an L2CAP socket is disconnected from the 
remote device, i do not get any SIGIO. Hence i am not able to do get the 
disconnection indication since i am not doing a read on the socket. I do 
a read only when i receive a SIGIO.
  I want to know if there is a way i can add code to the L2CAP file of 
bluez to send a sigio whenever it receives a disconnection indication. 
Can anyone help me with this ?

Regards,
Mayank



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2005-04-29  9:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-29  6:19 [Bluez-devel] Help with L2CAP sockets Mayank Sharma
2005-04-29  6:46 ` [Bluez-devel] 答复: " gao.yingbin
2005-04-29  9:39 ` 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.