Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: bt_sock.h
Link against: bluetooth.lib

Enum TBTL2CAPOptions

TBTL2CAPOptions

Support

Supported from 6.1

Description

Options for L2CAP sockets.

The values are used with RSocket::GetOpt() and/or RSocket::SetOpt().

See also:

KL2CAPGetOutboundMTU

Gets the L2CAP Maximum Transmit Unit (MTU) value for the outbound link for the current socket.No single write to a socket should be larger than this value, as packets are truncated silently down to this size. Its value is dependant upon the remote device, with a minimum value of 48, so should be tested after connection before writing. The socket must be connected before this is called. The value is returned as an integer.The option is at level KSolBtL2CAP.

KL2CAPGetACLLinkCount

Gets the current number of active ACL links.The value is returned as an integer.The option is at level KSolBtLM.

KL2CAPGetACLLinkArray

Gets an array of addresses for the currently active ACL links.The value is returned as a descriptor, containing an array of packaged TBTDevAddr objects. The number of active links can be found with the KL2CAPGetACLLinkCount option.The option is at level KSolBtLM.

KL2CAPInboundMTU

Gets the L2CAP Maximum Transmit Unit (MTU) value for the incoming link for the current socket.This is the maximum size of packet that the remote device is allowed to send. If the buffer supplied to a read operation is smaller than this, received data could be silently truncated. The socket must be connected before this is called. The value is returned as an integer.The option is at level KSolBtL2CAP.

KL2CAPRTXTimer

The timeout value of the L2CAP RTX timer (in seconds).This can be used with both GetOpt() and SetOpt(). The value is returned or set as an integer.The option is at level KSolBtL2CAP.

KL2CAPERTXTimer

The timeout value of the L2CAP ERTX timer (in seconds).This can be used with both GetOpt() and SetOpt(). The value is returned or set as an integer.The option is at level KSolBtL2CAP.