OBEX_SetTransportMTU

Name

OBEX_SetTransportMTU --  Set MTU to be used for receive and transmit

Synopsis

int OBEX_SetTransportMTU (obex_t * self, uint16_t mtu_rx, uint16_t mtu_tx_max);

Arguments

self

OBEX handle

mtu_rx

maximum receive transport packet size

mtu_tx_max

maximum transmit transport packet size negociated

Description

Changing those values can increase the performance of the underlying transport, but will increase memory consumption and latency (especially abort latency), and may trigger bugs in buggy transport. This need to be set *before* establishing the connection.

Returns -1 on error.