Hi Marcus,
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Marcel
> Holtmann
>
> run "hcidump -X" as root to see the details.
Now it works here (I wrote it in an email to this list before), but I will
test my programm at home in the evening with hcidump.
> Show them to us and also show us the full source code. The ownsock
> variable can't be an integer, but you treat it like an integer in the
> printf statement. So either the type is wrong or you get a bunch of
> compiler warnings that you are ignoring.
The ownsock-variable is the return-code from socket() and this is an
integer?! Compiling with -Wall don't show me any warnings. Do you confuse
ownsock with the ownaddr, a variable from type struct sockaddr_rc?
In a former message you suggest a look on rctest-code. I look at the code
for learning.
Thank you,
Ralf
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi Ralf,
> > Show them to us and also show us the full source code. The ownsock
> > variable can't be an integer, but you treat it like an integer in the
> > printf statement. So either the type is wrong or you get a bunch of
> > compiler warnings that you are ignoring.
> The ownsock-variable is the return-code from socket() and this is an
> integer?! Compiling with -Wall don't show me any warnings. Do you confuse
> ownsock with the ownaddr, a variable from type struct sockaddr_rc?
oh yes, I messed that up. Sorry for that confusion, but why don't you
use standard variable names like sk, addr, sa etc. ;)
> In a former message you suggest a look on rctest-code. I look at the code
> for learning.
And look at "hciconfig -a" to check if you are in security mode 3 or
not.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users