When using bluetooth transport via BtOBEX_TransportConnect, if I use
OBEX_SetTransportMTU to set my transmit MTU to say OBEX_MAXIMUM_MTU
everything works ok.

But if I open a bluetooth socket manually and use
FdOBEX_TransportSetup instead, OpenOBEX gets stuck when sending the
body of my put request.

I've noticed that it works with transmit MTU <= 40687, but with
anything over this value the write(fd, msg->data, size) call inside
do_write(int fd, buf_t *msg, int mtu) returns an actual write of 40687
(see below)

//Connect request
obex_data_request(): len = 7 bytes
do_write(): sending 7 bytes
//Connect response
obex_data_indication(): Got 4 bytes msg len=7
obex_parse_connect_header(): version=10
obex_parse_connect_header(): requested MTU=fffe, used MTU=fffe
//Put request
obex_data_request(): len = 65534 bytes
do_write(): sending 40687 bytes
do_write(): sending 24847 bytes
//OpenOBEX stuck at this point!!!

Why is this?

Thanks

Nick

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to