* [Bluez-users] error while making call to ioctl for releasing a device
@ 2007-02-28 12:23 siddhant tewari
2007-03-03 11:33 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: siddhant tewari @ 2007-02-28 12:23 UTC (permalink / raw)
To: BlueZ users
[-- Attachment #1.1: Type: text/plain, Size: 345 bytes --]
hi,
I am trying to obex push a file through rfcomm channel. Everything goes
fine (including sending of file) until i try to release the device via call
to ioctl
exact call is
ioctl(sock,RFCOMMRELEASEDEV,&req)
with error " Bad File Descriptor".
Can anyone give me a hint abt why can this happen..
Waiting for some reply
regards
siddhant
[-- Attachment #1.2: Type: text/html, Size: 431 bytes --]
[-- Attachment #2: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-users] error while making call to ioctl for releasing a device
2007-02-28 12:23 [Bluez-users] error while making call to ioctl for releasing a device siddhant tewari
@ 2007-03-03 11:33 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2007-03-03 11:33 UTC (permalink / raw)
To: BlueZ users
Hi Siddhant,
> I am trying to obex push a file through rfcomm channel. Everything
> goes fine (including sending of file) until i try to release the
> device via call to ioctl
>
> exact call is
>
> ioctl(sock,RFCOMMRELEASEDEV,&req)
>
> with error " Bad File Descriptor".
>
> Can anyone give me a hint abt why can this happen..
> Waiting for some reply
without looking at the code, I can't tell you anything. However you
should use the RFCOMM socket directly and not the virtual TTY. It is not
needed to put another kernel layer in between.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-03 11:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-28 12:23 [Bluez-users] error while making call to ioctl for releasing a device siddhant tewari
2007-03-03 11:33 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox