Re: [Bluez-devel] l2cap xfer fails
flat view
From: Mauro Tortonesi <hidden>
Date: 2004-01-28 11:36:42
On Wednesday 28 January 2004 12:22, Marcel Holtmann wrote:
Hi Mauro,quoted
what i wanted to say is that i can transfer (over L2CAP) data from console, but transfer of files redirected to stdin always fails. perhaps i am doing something wrong? such as calling write(2) over L2CAP sockets with buffers larger that 762 bytes?I haven't checked the nc6 Bluetooth support so far, but the L2CAP is a SOCK_SEQPACKET and it has an in and an out MTU. The default MTU is 672 and this means if you send data with a larger buffer, the write() will fail.
you're right. in fact:
nc6 --mtu=672 -b address -p psm
works perfectly.
--
Aequam memento rebus in arduis servare mentem...
Mauro Tortonesi mtortonesi@ing.unife.it
mauro@deepspace6.net
mauro@ferrara.linux.it
Deep Space 6 - IPv6 with Linux http://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it