Re: Valgrind issue on sdp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI Arthur,

On Wed, Jan 7, 2015 at 2:53 PM, Arthur Lambert
<lambertarthur22@xxxxxxxxx> wrote:
> Hi Luiz,
>
> Thanks for your answer. I does not have dbus in my target environment.
> I could easily add dbus package in my target system but I have some
> constraint which force me to avoid the dependency which are not
> mandatory for my needs.
>
> I hope at least that the current api that I used is not  deprecated right ?


libbluetooth is intended for internal use, at least starting with BlueZ 5.0.

> Arthur.
>
>
>
> 2015-01-07 17:26 GMT+01:00 Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx>:
>> Hi Arthur,
>>
>> On Wed, Jan 7, 2015 at 12:39 PM, Arthur Lambert
>> <lambertarthur22@xxxxxxxxx> wrote:
>>> Hi,
>>>
>>> I am currently trying to implement a bluetooth server on linux to
>>> communicate with an android mobile device. I am using rfcomm socket.
>>>
>>> To be able to work with android I need to register a service using the
>>> sdp feature (Android cannot use rc channel dirrectly or only in a
>>> dirty way, need dynamic uuid though sdp).
>>>
>>> I am currently able to communicate correctly between my linux and my
>>> android. I was checking my code with valgrind and I get some memory
>>> leak in sdp library. I have done some search about this subject but I
>>> was not able to find a right answer.
>>>
>>> Current implementation of my sdp (which come from :
>>> http://people.csail.mit.edu/albert/bluez-intro/x604.html#bzi-sdp-register)
>>
>> There is a much easier way to do that using bluetoothd and
>> org.bluez.ProfileManager you can register a SPP record and receive the
>> socket file descriptor via org.bluez.Profile (see
>> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/profile-api.txt),
>> there is also a test script in python if you want to look at some
>> example: https://git.kernel.org/cgit/bluetooth/bluez.git/tree/test/test-profile
>>
>> --
>> Luiz Augusto von Dentz
>
>
>
> --
> - Arthur LAMBERT



-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux