2005-08-26 11:19:33

by Esther López Casariego

[permalink] [raw]
Subject: [Bluez-devel] L2CAP sockets

Hello you all!



I have a question related with BlueZ L2CAP sockets, and I hope somebody can
help me.



If I want to communicate two Bluetooth devices using L2CAP, I just open an
L2CAP socket and send data through this open socket. (Is this OK?).

The question is related with the size and format of the data send throught
this socket. How is the data packet created? Do I need to create headers and
so on? What is the size of the data I can send?



Thanks in advance



Esther


2005-08-26 11:32:35

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] L2CAP sockets

Hi Esther,

> I have a question related with BlueZ L2CAP sockets, and I hope
> somebody can help me=85
>=20
> If I want to communicate two Bluetooth devices using L2CAP, I just
> open an L2CAP socket and send data through this open socket. (Is this
> OK?).=20
>=20
> The question is related with the size and format of the data send
> throught this socket. How is the data packet created? Do I need to
> create headers and so on? What is the size of the data I can send?

the L2CAP socket is a SOCK_SEQPACKET and the MTU size can be retrieved
with a getsockopt() call.

Regards

Marcel




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel