MLlcpConnection Class Reference

#include "llcpconnection.h"

class MLlcpConnection
Public Member Enumerations
enumTLlcpConnectionType { ELlcpConnLessTransporter, ELlcpConnOrientedTransporter }
Public Member Functions
virtual ~MLlcpConnection()
pure virtual TUint8 DSAP()
pure virtual TUint8 DsapL()
pure virtual voidReceive(TRequestStatus &, TDes8 &)
pure virtual TInt Receive(TDes8 &)
pure virtual TInt ReceiveBufferCount()
pure virtual voidReceiveCancel()
pure virtual TUint8 SSAP()
pure virtual TUint8 SsapL()
pure virtual TInt SupportedDataLength()
pure virtual TInt SupportedDataLength()
pure virtual voidTransmit(TRequestStatus &, const TDesC8 &)
pure virtual voidTransmitCancel()
pure virtual TLlcpConnectionType TransportType()
pure virtual TInt TransportType()
pure virtual voidWaitForData(TRequestStatus &)
pure virtual voidWaitForDataCancel()

Detailed Description

MLlcpConnection represent interface class for all connection between local and remote peers.

Member Enumeration Documentation

Enum TLlcpConnectionType

Constructor & Destructor Documentation

~MLlcpConnection ( )

~MLlcpConnection()[inline, virtual]

Empty destructor.

Member Function Documentation

DSAP ( )

TUint8 DSAP()const [pure virtual]

Returns DSAP address of this connection object.

Returns: DSAP address of this connection object.

DsapL ( )

TUint8 DsapL()[pure virtual]

Returns DSAP address of this connection object.

Returns: DSAP address of this connection object.

Receive ( TRequestStatus &, TDes8 & )

voidReceive(TRequestStatus &aStatus,
TDes8 &aBuffer
)[pure virtual]

Tries to receive data from remote peer. Maximum size of received data is LLCP MTU and aBuffer should be that size if it is uncertain how big data packets are going to be received.

ParameterDescription
aStatusRequest status
aBufferBuffer for received data

Receive ( TDes8 & )

TInt Receive(TDes8 &aBuffer)[pure virtual]

Fetches data received from remote peer. Maximum size of received data is LLCP MTU and aBuffer should be that size if it is uncertain how big packets we are receiving.

ParameterDescription
aBufferBuffer for received data

Returns: System wide error code

ReceiveBufferCount ( )

TInt ReceiveBufferCount()const [pure virtual]

Returns the amount of buffered received frames.

Returns: Amount of buffered frames

ReceiveCancel ( )

voidReceiveCancel()[pure virtual]

Cancels asynchronous MLlcpConnection::Receive() request.

SSAP ( )

TUint8 SSAP()const [pure virtual]

Returns SSAP address of this connection object.

Returns: SSAP address of this connection object.

SsapL ( )

TUint8 SsapL()[pure virtual]

Returns SSAP address of this connection object.

Returns: SSAP address of this connection object.

SupportedDataLength ( )

TInt SupportedDataLength()[pure virtual]

Returns maximum amount of bytes that can be sent or received in one MLlcpConnection::Transmit() or MLlcpConnection::Receive() method.

SupportedDataLength ( )

TInt SupportedDataLength()const [pure virtual]

Returns maximum amount of bytes that can be sent or received in one MLlcpConnection::Transmit() or MLlcpConnection::Receive() method.

Transmit ( TRequestStatus &, const TDesC8 & )

voidTransmit(TRequestStatus &aStatus,
const TDesC8 &aData
)[pure virtual]

Transmits data to the remote peer.

ParameterDescription
aDataData to transmit

TransmitCancel ( )

voidTransmitCancel()[pure virtual]

Cancels MLlcpConnection::Transmit() request.

TransportType ( )

TLlcpConnectionType TransportType()[pure virtual]

Returns the transport type of the connection.

TransportType ( )

TInt TransportType()const [pure virtual]

Returns the transport type of the connection.

WaitForData ( TRequestStatus & )

voidWaitForData(TRequestStatus &aStatus)[pure virtual]

Requests MLlcpType2Connection object to notify data received event.

Returns: Return values for aStatus:KErrNone when connection has received atleast one data frame from the remote peer.KErrInUse when new request is issued before previous is completed.KErrNotReady when connection is not connected to the remote peer.KErrEof when remote peer has lost from the near field.

WaitForDataCancel ( )

voidWaitForDataCancel()[pure virtual]