#include <mw/obexconstants.h>
class TObexProtocolPolicy |
Public Member Functions | |
---|---|
TObexProtocolPolicy() | |
IMPORT_C TUint16 | ReceiveMtu() |
IMPORT_C TInt | SetReceiveMtu(TUint16) |
IMPORT_C TInt | SetTransmitMtu(TUint16) |
IMPORT_C TUint16 | TransmitMtu() |
IMPORT_C TUint16 | Version() |
Contains information about OBEX packet sizing policy, defining the maximum buffer size for receive and transmit packets
IMPORT_C TUint16 | ReceiveMtu | ( | ) | const |
Gets the policy's receive packet buffer size
Returns: Receive packet buffer size
Sets the maximum size of the receive packet buffer for the policy. For the IrDA transport, if the new receive buffer size is different to KObexPacketDefaultSize the receive packet size is set to equal the new buffer size. Otherwise the packet size is set to the protocol defined limit.
Parameter | Description |
---|---|
aReceiveMtu | The new buffer size |
Returns: KErrNone on success. KErrArgument if the packet size is not supported
IMPORT_C TUint16 | TransmitMtu | ( | ) | const |
Gets the policy's transmit packet buffer size
Returns: Transmit packet buffer size
IMPORT_C TUint16 | Version | ( | ) | const |
Gets the version of the protocol policy format that this class supports
Returns: Protocol policy version