CLlcpProvider Class Reference

#include <mw/llcpprovider.h>

Link against: llcp.lib

class CLlcpProvider : public CBase

Inherits from

Detailed Description

This interface provides methods to listen notification of LLCP - events. It also provides method to generate different types of LLCP connection objects between local and remote peer.

Constructor & Destructor Documentation

~CLlcpProvider ( )

IMPORT_C~CLlcpProvider()

Destructor.

Member Function Documentation

AddLlcpLinkListenerL ( MLlcpLinkListener & )

IMPORT_C voidAddLlcpLinkListenerL(MLlcpLinkListener &aListener)

Registers MLlcpLinkListener object to listen LLCP - supported remote peers.

May leave:

CreateConnLessTransporterL ( TUint8 )

IMPORT_C MLlcpConnLessTransporter *CreateConnLessTransporterL(TUint8aDSAP)

Creates a new MLlcpConnLessTransporter object with specified DSAP address. Responsibility of MLlcpConnLessTransporter object is transferred to the client. Ownership of MLlcpConnLessTransporter object is transferred to caller of this method.

See also: MLlcpConnLessTransporter.

May leave with one of the system wide error codes.

Parameters
aDSAPDSAP address which will be associated with object
Return Value
MLlcpConnLessTransporter object.

CreateConnOrientedTransporterL ( const TDesC8 & )

IMPORT_C MLlcpConnOrientedTransporter *CreateConnOrientedTransporterL(const TDesC8 &aServiceName)

Creates a new MLlcpConnOrientedTransporter object with specified Service name. Responsibility of MLlcpConnOrientedTransporter object is transferred to the client. Ownership of MLlcpConnOrientedTransporter object is transferred to caller of this method.

See also: MLlcpConnOrientedTransport.

May leave with one of the system wide error codes.

Parameters
aServiceNameService name which will be associated with object
Return Value
MLlcpConnOrientedTransport object.

CreateConnOrientedTransporterL ( TUint8 )

IMPORT_C MLlcpConnOrientedTransporter *CreateConnOrientedTransporterL(TUint8aDSAP)

Creates a new MLlcpConnOrientedTransporter object with specified DSAP address. Responsibility of MLlcpConnOrientedTransporter object is transferred to the client. Ownership of MLlcpConnOrientedTransporter object is transferred to caller of this method.

See also: MLlcpConnOrientedTransport.

May leave with one of the system wide error codes.

Parameters
aDSAPDSAP address which will be associated with object
Return Value
MLlcpConnOrientedTransport object.

NewL ( RNfcServer & )

IMPORT_C CLlcpProvider *NewL(RNfcServer &aNfcServer)[static]

Creates a new instance of this class.

May leave with one of the system wide error codes.

Return Value
Pointer to the newly created instance.

NewLC ( RNfcServer & )

IMPORT_C CLlcpProvider *NewLC(RNfcServer &aNfcServer)[static]

Creates a new instance of this class.

May leave with one of the system wide error codes.

Return Value
Pointer to the newly created instance.

RemoveLlcpLinkListener ( )

IMPORT_C voidRemoveLlcpLinkListener()

Remove MLlcpReceiver object from listening LLCP - supported remote peers.

StartListeningConnLessRequestL ( MLlcpConnLessListener &, TUint8 )

IMPORT_C voidStartListeningConnLessRequestL(MLlcpConnLessListener &aLlcpConnLessListener,
TUint8aSSAP
)

Starts listening for connection-less requests. Once remote peer has sent the first data packet to specified service access point MLlcpConnLessListener::FrameReceived method will be called. Only MLlcpConnectionListener object can be attached to given service at a time.

May leave:
  • KErrArgument, if given SSAP value is greater than 63.

  • KErrInUse, if given SSAP value is already in use.

Parameters
aSSAPSSAP address which will be attached to given service.

StartListeningConnOrientedRequestL ( MLlcpConnOrientedListener &, const TDesC8 & )

IMPORT_C voidStartListeningConnOrientedRequestL(MLlcpConnOrientedListener &aLlcpConnListener,
const TDesC8 &aServiceName
)

Starts listening for connection-oriented requests. Once remote peer has request to open connection between local and remote peer MLlcpConnOrientedListener::RemoteConnectRequest method will be called. Only MLlcpConnOrientedListener object can be attached to given service at a time.

May leave:
  • KErrNotReady when all service name slots are already reserved

  • KErrInUse if given service name is already in use.

Parameters
aLlcpConnListenerReference to MLlcpConnOrientedListener object.
aServiceNameService name to be registered.

StartListeningConnOrientedRequestL ( MLlcpConnOrientedListener &, TUint8 )

IMPORT_C voidStartListeningConnOrientedRequestL(MLlcpConnOrientedListener &aLlcpConnListener,
TUint8aSSAP
)

Starts listening for connection-oriented requests. Once remote peer has request to open connection between local and remote peer MLlcpConnOrientedListener::RemoteConnectRequest method will be called. Only MLlcpConnOrientedListener object can be attached to given service at a time.

May leave:
  • KErrArgument, if given SSAP value is greater than 63.

  • KErrInUse, if given SSAP value is already in use.

Parameters
aLlcpConnListenerReference to MLlcpConnOrientedListener object.
aSSAPSSAP address which will be attached to given service.

StopListeningConnLessRequest ( TUint8 )

IMPORT_C voidStopListeningConnLessRequest(TUint8aSSAP)

Stops listening for a connection.

Parameters
aSSAPSSAP address which will be removed.

StopListeningConnOrientedRequest ( const TDesC8 & )

IMPORT_C voidStopListeningConnOrientedRequest(const TDesC8 &aServiceName)

Stops listening for a connection.

Parameters
aServiceNameService name registration to be removed.

StopListeningConnOrientedRequest ( TUint8 )

IMPORT_C voidStopListeningConnOrientedRequest(TUint8aSSAP)

Stops listening for a connection.

Parameters
aSSAPSSAP address which will be removed.