MLlcpConnOrientedTransporter Class Reference

#include <mw/llcpconnorientedtransporter.h>

class MLlcpConnOrientedTransporter : public MLlcpConnection

Inherits from

Detailed Description

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

Constructor & Destructor Documentation

~MLlcpConnOrientedTransporter ( )

~MLlcpConnOrientedTransporter()[inline, virtual]

Empty destructor.

Member Function Documentation

AcceptConnectRequest ( )

voidAcceptConnectRequest()[pure virtual]

Accepts incoming connect request. This method should be called when remote peer has sent connect request. Incoming connectt requests are received via MLlcpConnOrientedListener::RemoteConnectRequest interface.

Connect ( TRequestStatus & )

voidConnect(TRequestStatus &aStatus)[pure virtual]

Transmits CONNECT-request to the remote peer.

Return Value
Return values for aStatus:KErrNone when LLCP connection between local and remote peer has established.KErrInUse when new request is issued before previous is completed.KErrNotSupported when remote peer has lost from the near field.

ConnectCancel ( )

voidConnectCancel()[pure virtual]

Cancels MLlcpConnection::Connect() asynchronous request.

DeclineConnectRequest ( )

voidDeclineConnectRequest()[pure virtual]

Declines incoming connect request. This method should be called when remote peer has sent connect request. Incoming connectt requests are received via MLlcpConnOrientedListener::RemoteConnectRequest interface.

Disconnect ( )

voidDisconnect()[pure virtual]

Disconnects this MLlcpConnOrientedTransporter object from the remote peer.

IsConnected ( )

TBool IsConnected()[pure virtual]

Returns Whether this connection is connected or not.

Return Values

EFalse If connection isn't connected.
ETrue If connection is connected.

WaitForDisconnection ( TRequestStatus & )

voidWaitForDisconnection(TRequestStatus &aStatus)[pure virtual]

Requests MLlcpConnection object to notify disconnection event.

Return Value
Return values for aStatus:KErrNone when connection has disconnected from the remote peer.KErrInUse when new request is issued before previous is completed.KErrNotReady when connection is not connected to the remote peer

WaitForDisconnectionCancel ( )

voidWaitForDisconnectionCancel()[pure virtual]

Cancels MLlcpType2Connection::WaitForDisconnection() request.