Main Page | Data Structures | File List | Data Fields

MNetworkDriver Class Reference

Network protocol driver interface. More...

#include <cobain.h>


Public Member Functions

virtual void DiscoverPeersL (TUint aServiceID, 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, TUint aExtraInfo=KRFCOMM)=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_9_1_2004-01-13, 1.40


Member Function Documentation

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

Asynchronously retrieves the network peers.

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

Legal values to supply in the aServiceID parameter:

  • Bluetooth driver: the service class id (UUID) of the service. Use 0 to discover all peers.

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

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,
TUint  aExtraInfo = KRFCOMM
[pure virtual]
 

Listen to incoming connections.

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

The following values may be used for the aExtraInfo parameter:

  • Bluetooth driver: KRFCOMM or KL2CAP. The value is used to decide to which protocol to listen to. The default is KRFCOMM.

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.
aExtraInfo protocol specific extra information.

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 Tue Jan 13 15:42:06 2004 for CobainAPI by doxygen 1.3.5