#include <mw/llcpprovider.h>
class CLlcpProvider : public CBase |
Public Member Functions | |
---|---|
~CLlcpProvider() | |
IMPORT_C void | AddLlcpLinkListenerL(MLlcpLinkListener &) |
IMPORT_C MLlcpConnLessTransporter * | CreateConnLessTransporterL(TUint8) |
IMPORT_C MLlcpConnOrientedTransporter * | CreateConnOrientedTransporterL(const TDesC8 &) |
IMPORT_C MLlcpConnOrientedTransporter * | CreateConnOrientedTransporterL(TUint8) |
IMPORT_C CLlcpProvider * | NewL(RNfcServer &) |
IMPORT_C CLlcpProvider * | NewLC(RNfcServer &) |
IMPORT_C void | RemoveLlcpLinkListener() |
IMPORT_C void | StartListeningConnLessRequestL(MLlcpConnLessListener &, TUint8) |
IMPORT_C void | StartListeningConnOrientedRequestL(MLlcpConnOrientedListener &, const TDesC8 &) |
IMPORT_C void | StartListeningConnOrientedRequestL(MLlcpConnOrientedListener &, TUint8) |
IMPORT_C void | StopListeningConnLessRequest(TUint8) |
IMPORT_C void | StopListeningConnOrientedRequest(const TDesC8 &) |
IMPORT_C void | StopListeningConnOrientedRequest(TUint8) |
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.
IMPORT_C void | AddLlcpLinkListenerL | ( | MLlcpLinkListener & | aListener | ) |
Registers MLlcpLinkListener object to listen LLCP - supported remote peers.
KErrInUse If MLlcpLinkListener is already added.
IMPORT_C MLlcpConnLessTransporter * | CreateConnLessTransporterL | ( | TUint8 | aDSAP | ) |
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.
Parameter | Description |
---|---|
aDSAP | DSAP address which will be associated with object |
Returns: MLlcpConnLessTransporter object.
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.
Parameter | Description |
---|---|
aServiceName | Service name which will be associated with object |
Returns: MLlcpConnOrientedTransport object.
IMPORT_C MLlcpConnOrientedTransporter * | CreateConnOrientedTransporterL | ( | TUint8 | aDSAP | ) |
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.
Parameter | Description |
---|---|
aDSAP | DSAP address which will be associated with object |
Returns: MLlcpConnOrientedTransport object.
IMPORT_C CLlcpProvider * | NewL | ( | RNfcServer & | aNfcServer | ) | [static] |
Creates a new instance of this class.
May leave with one of the system wide error codes.
Returns: Pointer to the newly created instance.
IMPORT_C CLlcpProvider * | NewLC | ( | RNfcServer & | aNfcServer | ) | [static] |
Creates a new instance of this class.
May leave with one of the system wide error codes.
Returns: Pointer to the newly created instance.
IMPORT_C void | RemoveLlcpLinkListener | ( | ) |
Remove MLlcpReceiver object from listening LLCP - supported remote peers.
IMPORT_C void | StartListeningConnLessRequestL | ( | MLlcpConnLessListener & | aLlcpConnLessListener, |
TUint8 | aSSAP | |||
) |
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.
KErrArgument, if given SSAP value is greater than 63.
KErrInUse, if given SSAP value is already in use.
Parameter | Description |
---|---|
aSSAP | SSAP address which will be attached to given service. |
IMPORT_C void | StartListeningConnOrientedRequestL | ( | 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.
KErrNotReady when all service name slots are already reserved
KErrInUse if given service name is already in use.
Parameter | Description |
---|---|
aLlcpConnListener | Reference to MLlcpConnOrientedListener object. |
aServiceName | Service name to be registered. |
IMPORT_C void | StartListeningConnOrientedRequestL | ( | MLlcpConnOrientedListener & | aLlcpConnListener, |
TUint8 | aSSAP | |||
) |
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.
KErrArgument, if given SSAP value is greater than 63.
KErrInUse, if given SSAP value is already in use.
Parameter | Description |
---|---|
aLlcpConnListener | Reference to MLlcpConnOrientedListener object. |
aSSAP | SSAP address which will be attached to given service. |
IMPORT_C void | StopListeningConnLessRequest | ( | TUint8 | aSSAP | ) |
Stops listening for a connection.
Parameter | Description |
---|---|
aSSAP | SSAP address which will be removed. |
IMPORT_C void | StopListeningConnOrientedRequest | ( | const TDesC8 & | aServiceName | ) |
Stops listening for a connection.
Parameter | Description |
---|---|
aServiceName | Service name registration to be removed. |
IMPORT_C void | StopListeningConnOrientedRequest | ( | TUint8 | aSSAP | ) |
Stops listening for a connection.
Parameter | Description |
---|---|
aSSAP | SSAP address which will be removed. |