Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <obexconstants.h>
Link against: obex.lib

Class TObexProtocolPolicy

class TObexProtocolPolicy;

Description

Contains information about OBEX packet sizing policy, defining the maximum buffer size for receive and transmit packets

Members

Defined in TObexProtocolPolicy:


Construction and destruction


TObexProtocolPolicy()

IMPORT_C TObexProtocolPolicy();

Description

Sets up class with default values

[Top]


Member functions


SetReceiveMtu(TUint16)

IMPORT_C TInt SetReceiveMtu(TUint16 aReceiveMtu);

Description

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.

Parameters

TUint16 aReceiveMtu

The new buffer size

Return value

TInt

KErrNone on success. KErrArgument if the packet size is not supported


SetTransmitMtu(TUint16)

IMPORT_C TInt SetTransmitMtu(TUint16 aTransmitMtu);

Description

Sets the maximum size of the transmit packet buffer for the policy

Parameters

TUint16 aTransmitMtu

The new buffer size

Return value

TInt

KErrNone on success. KErrArgument if the packet size is not supported


Version()const

IMPORT_C TUint16 Version() const;

Description

Gets the version of the protocol policy format that this class supports

Return value

TUint16

Protocol policy version


ReceiveMtu()const

IMPORT_C TUint16 ReceiveMtu() const;

Description

Gets the policy's receive packet buffer size

Return value

TUint16

Receive packet buffer size


TransmitMtu()const

IMPORT_C TUint16 TransmitMtu() const;

Description

Gets the policy's transmit packet buffer size

Return value

TUint16

Transmit packet buffer size