Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

MNetworkDriver Class Reference

Network protocol driver interface. More...

#include <cobain.h>

Inheritance diagram for MNetworkDriver:

CDriverBase CBTDriver

Public Member Functions

virtual ~MNetworkDriver ()
virtual TPeerListGetPeersL (TUint aPort)=0
 Synchronously retrieves the network peers.

virtual void DiscoverPeersL (TUint aPort, MNetworkDriverListener *aListener)=0
 Asynchronously retrieves the network peers.

virtual void CancelPeerDiscovery ()=0
 Cancels pending peer discovery.

virtual TProtocol GetProtocol ()=0
 Returns the protocol (type) of this driver.

virtual void ListenL (TUint aPort, MConnectionListener *aListener)=0
 Listen to incoming connections.

virtual void StopListeningL ()=0
 Aborts the current listen operation.


Detailed Description

Network protocol driver interface.

Author:
Matti Dahlbom
Version:
beta0_7_2003-12-08, 1.36

Definition at line 248 of file cobain.h.


Constructor & Destructor Documentation

virtual MNetworkDriver::~MNetworkDriver  )  [inline, virtual]
 

Definition at line 251 of file cobain.h.


Member Function Documentation

virtual void MNetworkDriver::CancelPeerDiscovery  )  [pure virtual]
 

Cancels pending peer discovery.

Implemented in CDriverBase.

virtual void MNetworkDriver::DiscoverPeersL TUint  aPort,
MNetworkDriverListener aListener
[pure virtual]
 

Asynchronously retrieves the network peers.

PeerListComplete() will be called for the MNetworkDriverListener implementation upon completion of the peer list.

Parameters:
aPort protocol specific value for identifying the service of the peer
aListener listener to be informed about the peer list

Implemented in CDriverBase.

virtual TPeerList* MNetworkDriver::GetPeersL TUint  aPort  )  [pure virtual]
 

Synchronously retrieves the network peers.

It is up to the caller to release the list.

Parameters:
aPort protocol specific value for identifying the service of the peer
Returns:
matching peers

Implemented in CBTDriver.

virtual TProtocol MNetworkDriver::GetProtocol  )  [pure virtual]
 

Returns the protocol (type) of this driver.

Returns:
protocol (type) of this driver

Implemented in CDriverBase.

virtual void MNetworkDriver::ListenL TUint  aPort,
MConnectionListener aListener
[pure virtual]
 

Listen to incoming connections.

If there is a listen operation already pending, leaves with KErrDriverAlreadyListening.

Parameters:
aPort port to listen to. value of this parameter is implementation dependent
aListener listener whose Accept() method is called when a new incoming connection is available.

Implemented in CDriverBase.

virtual void MNetworkDriver::StopListeningL  )  [pure virtual]
 

Aborts the current listen operation.

No more incoming connections will be received. If there is no pending listen operation, this method will leave with KErrDriverNotListening.

Implemented in CDriverBase.


The documentation for this class was generated from the following file:
Generated on Mon Dec 8 10:26:08 2003 for CobainAPIImplementation by doxygen 1.3.5