Re: rfcomm example setup

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

 



Hi Randy,

On Mon, Mar 4, 2013 at 6:42 PM, Randy Yates <yates@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Can someone please point me to an example of the bind, listen, and
> accept structures and parameters for setting up an RFCOMM socket using
> file descriptor (fd) received from the NewConnection() method in
> profile-api.txt?
>
> I tried the setup in "Bluetooth Essentials for Programmers," omitting
> the socket() call (since bluez provides the fd) but it's crashing right
> at the bind() call (never reaches the "bt 0.1" fprintf()). See
> attachment.

You don't have to bind, the socket is already in connected state so
you can already do read/write operations. Btw, don't forget to respond
to NewConnection otherwise it will timeout and bluetoothd will
probably disconnect the fd.


-- 
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