#include <mw/llcpconnection.h>
class MLlcpConnection |
Public Member Enumerations | |
---|---|
enum | TLlcpConnectionType { ELlcpConnLessTransporter, ELlcpConnOrientedTransporter } |
Public Member Functions | |
---|---|
virtual | ~MLlcpConnection() |
pure virtual TUint8 | DSAP() |
pure virtual TUint8 | DsapL() |
pure virtual void | Receive(TRequestStatus &, TDes8 &) |
pure virtual TInt | Receive(TDes8 &) |
pure virtual TInt | ReceiveBufferCount() |
pure virtual void | ReceiveCancel() |
pure virtual TUint8 | SSAP() |
pure virtual TUint8 | SsapL() |
pure virtual TInt | SupportedDataLength() |
pure virtual TInt | SupportedDataLength() |
pure virtual void | Transmit(TRequestStatus &, const TDesC8 &) |
pure virtual void | TransmitCancel() |
pure virtual TLlcpConnectionType | TransportType() |
pure virtual TInt | TransportType() |
pure virtual void | WaitForData(TRequestStatus &) |
pure virtual void | WaitForDataCancel() |
MLlcpConnection represent interface class for all connection between local and remote peers.
Enumerator | Value | Description |
---|---|---|
ELlcpConnLessTransporter | ||
ELlcpConnOrientedTransporter |
TUint8 | DSAP | ( | ) | const [pure virtual] |
Returns DSAP address of this connection object.
TUint8 | DsapL | ( | ) | [pure virtual] |
Returns DSAP address of this connection object.
void | Receive | ( | 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.
Parameters | |
---|---|
aStatus | Request status |
aBuffer | Buffer for received data |
TInt | ReceiveBufferCount | ( | ) | const [pure virtual] |
Returns the amount of buffered received frames.
void | ReceiveCancel | ( | ) | [pure virtual] |
Cancels asynchronous MLlcpConnection::Receive() request.
TUint8 | SSAP | ( | ) | const [pure virtual] |
Returns SSAP address of this connection object.
TUint8 | SsapL | ( | ) | [pure virtual] |
Returns SSAP address of this connection object.
TInt | SupportedDataLength | ( | ) | [pure virtual] |
Returns maximum amount of bytes that can be received in one MLlcpConnection::Receive() method.
TInt | SupportedDataLength | ( | ) | const [pure virtual] |
Returns maximum amount of bytes that can be sent or received in one MLlcpConnection::Transmit() or MLlcpConnection::Receive() method.
void | Transmit | ( | TRequestStatus & | aStatus, |
const TDesC8 & | aData | |||
) | [pure virtual] |
Transmits data to the remote peer.
Parameters | |
---|---|
aData | Data to transmit |
TLlcpConnectionType | TransportType | ( | ) | [pure virtual] |
Returns the transport type of the connection.
TInt | TransportType | ( | ) | const [pure virtual] |
Returns the transport type of the connection.
void | WaitForData | ( | TRequestStatus & | aStatus | ) | [pure virtual] |
Requests MLlcpType2Connection object to notify data received event.
void | WaitForDataCancel | ( | ) | [pure virtual] |
Cancels MLlcpType2Connection::WaitForData() request.