public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Listen a already open socket by the OS
@ 2008-06-11 22:02 Valerio Valerio
  2008-06-13 19:29 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Valerio Valerio @ 2008-06-11 22:02 UTC (permalink / raw)
  To: bluez-devel


[-- Attachment #1.1: Type: text/plain, Size: 390 bytes --]

Hi,

I'm a GSoC student working with Bluez, but for other org.
I need to listen a already open socket by the OS, but when a try to
overwrite (bind) I get a "already in use error", exist any function or
alternative to just listen the socket ?
I want to listen the HID channels (psm 17 and 19).

Thanks in advance.

Cheers,

-- 
Valério Valério

http://www.valeriovalerio.org

[-- Attachment #1.2: Type: text/html, Size: 487 bytes --]

[-- Attachment #2: Type: text/plain, Size: 247 bytes --]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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

* Re: [Bluez-devel] Listen a already open socket by the OS
  2008-06-11 22:02 [Bluez-devel] Listen a already open socket by the OS Valerio Valerio
@ 2008-06-13 19:29 ` Luiz Augusto von Dentz
  2008-06-13 20:53   ` Valerio Valerio
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2008-06-13 19:29 UTC (permalink / raw)
  To: BlueZ development

I supposed you are the OpenMoko student in charge of remote control.
You better join #bluez @ freenode to stay tunned about bluetooth and
BlueZ, now about HID channels, we already are listen them in hcid, so
you don't need to worry if you are running hcid for the server part.
The tricky part is the client side, when the device act as a
mouse/keyboard, Im afraid there is no library to assist you with HID
protocol and I think you cannot connect in such psm without being root
either. If Im correct about those points then I think it is better to
code the missing HID support inside bluez-utils.

-- =

Luiz Augusto von Dentz
Engenheiro de Computa=E7=E3o

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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

* Re: [Bluez-devel] Listen a already open socket by the OS
  2008-06-13 19:29 ` Luiz Augusto von Dentz
@ 2008-06-13 20:53   ` Valerio Valerio
  0 siblings, 0 replies; 3+ messages in thread
From: Valerio Valerio @ 2008-06-13 20:53 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 1740 bytes --]

Hi,

2008/6/13 Luiz Augusto von Dentz <luiz.dentz@gmail.com>:

> I supposed you are the OpenMoko student in charge of remote control.

Yap you are right :)

>
> You better join #bluez @ freenode to stay tunned about bluetooth and
> BlueZ, now about HID channels, we already are listen them in hcid, so
> you don't need to worry if you are running hcid for the server part.
> The tricky part is the client side, when the device act as a
> mouse/keyboard, Im afraid there is no library to assist you with HID
> protocol and I think you cannot connect in such psm without being root
> either. If Im correct about those points then I think it is better to
> code the missing HID support inside bluez-utils.


Yes the psm 17 (control channel) require root, because is one of the
reserved psm,  my previous problem is that I had the hidd server running in
the client side, if I disable it I can listen the sockets that I need
without problems.

If one of the BlueZ developer with knowledge of HID, give some orientation
for a while, maybe I can do some code that can be useful for other
developers and integrated in the bluez-utils.

Best regards,

-- 
Valério Valério

http://www.valeriovalerio.org


>
> --
> Luiz Augusto von Dentz
> Engenheiro de Computação
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

[-- Attachment #1.2: Type: text/html, Size: 2655 bytes --]

[-- Attachment #2: Type: text/plain, Size: 247 bytes --]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
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:[~2008-06-13 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 22:02 [Bluez-devel] Listen a already open socket by the OS Valerio Valerio
2008-06-13 19:29 ` Luiz Augusto von Dentz
2008-06-13 20:53   ` Valerio Valerio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox