Main Page | Data Structures | File List | Data Fields

MNetworkDriver Class Reference

Network protocol driver interface. More...

#include <cobain.h>


Public Member Functions

virtual TPeerList * GetPeersL (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


Member Function Documentation

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

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

virtual TProtocol MNetworkDriver::GetProtocol  )  [pure virtual]
 

Returns the protocol (type) of this driver.

Returns:
protocol (type) of this driver

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.

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.


The documentation for this class was generated from the following file:
Generated on Mon Dec 8 10:25:59 2003 for CobainAPI by doxygen 1.3.5