#include <driver.h>
Inheritance diagram for CDriver:

Public Member Functions | |
| CDriver (RCobainClientSession &aClientSession, TProtocol aProtocol) | |
| virtual | ~CDriver () |
| TProtocol | GetProtocol () |
| Returns the protocol (type) of this driver. | |
| void | ListenL (TUint aServiceID, MConnectionListener *aListener, TUint aExtraInfo=0) |
| Listen to incoming connections. | |
| void | StopListeningL () |
| Aborts the current listen operation. | |
| void | DiscoverPeersL (TUint aServiceClassID, MNetworkDriverListener *aListener) |
| Asynchronously retrieves the network peers. | |
| void | CancelPeerDiscovery () |
| Cancels pending peer discovery. | |
Protected Attributes | |
| RCobainClientSession & | iClientSession |
| MNetworkDriverListener * | iListener |
| CConnectionListener * | iConnectionListener |
Private Attributes | |
| TProtocol | iProtocol |
| CPeerListPump | iPeerListPump |
Definition at line 40 of file driver.h.
|
||||||||||||
|
Definition at line 28 of file driver.cpp. |
|
|
Definition at line 36 of file driver.cpp. References iConnectionListener, iPeerListPump, and StopListeningL(). |
|
|
Cancels pending peer discovery.
Implements MNetworkDriver. Definition at line 92 of file driver.cpp. References iPeerListPump. |
|
||||||||||||
|
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:
Implements MNetworkDriver. Definition at line 87 of file driver.cpp. References CPeerListPump::DiscoverPeers(), and iPeerListPump. |
|
|
Returns the protocol (type) of this driver.
Implements MNetworkDriver. |
|
||||||||||||||||
|
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:
Implements MNetworkDriver. Definition at line 46 of file driver.cpp. References EBluetooth, iClientSession, iConnectionListener, iProtocol, KErrDriverAlreadyListening, CConnectionListener::Listen(), and RCobainClientSession::StartListeningL(). |
|
|
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. Implements MNetworkDriver. Definition at line 72 of file driver.cpp. References iConnectionListener, iListener, and KErrDriverNotListening. Referenced by ~CDriver(). |
|
|
Definition at line 55 of file driver.h. Referenced by ListenL(). |
|
|
Definition at line 61 of file driver.h. Referenced by ListenL(), StopListeningL(), and ~CDriver(). |
|
|
Definition at line 58 of file driver.h. Referenced by StopListeningL(). |
|
|
Definition at line 68 of file driver.h. Referenced by CancelPeerDiscovery(), DiscoverPeersL(), and ~CDriver(). |
|
|
Definition at line 65 of file driver.h. Referenced by GetProtocol(), and ListenL(). |
1.3.5