#include <cobain.h>
Public Member Functions | |
| IMPORT_C | ~CNetworkPeer () |
| Deallocates the peer object. | |
| IMPORT_C TDesC & | GetDeviceName () |
| Returns the peer device name. | |
| IMPORT_C TDesC8 & | GetDeviceAddress () |
| Returns the peer device address. | |
| IMPORT_C TDesC8 & | GetServiceID () |
| Returns the peer service name. | |
| IMPORT_C TUint | GetPort () |
| Returns the port associated to the service. | |
| IMPORT_C RCobainSocket * | ConnectL () |
| Connects to the remote peer service. | |
| IMPORT_C TProtocol | GetProtocol () |
| Returns the protocol (type) of the peer. | |
Data Fields | |
| TSglQueLink | iLink |
Private Member Functions | |
| CNetworkPeer (RCobainClientSession &aSession, TProtocol aProtocol, TUint aPort) | |
| void | ConstructL (TDesC &aDeviceName, TDesC8 &aDeviceAddress, TDesC8 &aServiceID) |
Static Private Member Functions | |
| CNetworkPeer * | NewL (RCobainClientSession &aSession, TProtocol aProtocol, TDesC &aDeviceName, TDesC8 &aDeviceAddress, TDesC8 &aServiceID, TUint aPort) |
Private Attributes | |
| TProtocol | iProtocol |
| TDesC * | iDeviceName |
| TDesC8 * | iServiceID |
| TDesC8 * | iDeviceAddress |
| TUint | iPort |
| RCobainClientSession & | iSession |
A peer is in essence a network service with which the client shares a protocol.
Definition at line 156 of file cobain.h.
|
|
Deallocates the peer object.
Definition at line 66 of file networkpeer.cpp. References iDeviceAddress, iDeviceName, and iServiceID. |
|
||||||||||||||||
|
Definition at line 53 of file networkpeer.cpp. Referenced by NewL(). |
|
|
Connects to the remote peer service.
Definition at line 73 of file networkpeer.cpp. References RCobainClientSession::ConnectSocketL(), and iSession. |
|
||||||||||||||||
|
Definition at line 44 of file networkpeer.cpp. References iDeviceAddress, iDeviceName, and iServiceID. Referenced by NewL(). |
|
|
Returns the peer device address.
Definition at line 172 of file cobain.h. References iDeviceAddress. Referenced by RCobainClientSession::ConnectSocketL(). |
|
|
Returns the peer device name.
Definition at line 167 of file cobain.h. References iDeviceName. Referenced by RCobainClientSession::ConnectSocketL(). |
|
|
Returns the port associated to the service.
Definition at line 182 of file cobain.h. References iPort. Referenced by RCobainClientSession::ConnectSocketL(). |
|
|
Returns the protocol (type) of the peer.
Definition at line 192 of file cobain.h. References iProtocol, and TProtocol. Referenced by RCobainClientSession::ConnectSocketL(). |
|
|
Returns the peer service name.
Definition at line 177 of file cobain.h. References iServiceID. Referenced by RCobainClientSession::ConnectSocketL(). |
|
||||||||||||||||||||||||||||
|
Definition at line 29 of file networkpeer.cpp. References CNetworkPeer(), and ConstructL(). Referenced by CPeerListPump::AddPeerToListL(), and RCobainClientSession::DiscoverBTPeersL(). |
|
|
|
|
|
|
|
|
Definition at line 221 of file cobain.h. Referenced by ConstructL(), GetDeviceAddress(), and ~CNetworkPeer(). |
|
|
Definition at line 215 of file cobain.h. Referenced by ConstructL(), GetDeviceName(), and ~CNetworkPeer(). |
|
|
|
|
|
Definition at line 224 of file cobain.h. Referenced by GetPort(). |
|
|
Definition at line 212 of file cobain.h. Referenced by GetProtocol(). |
|
|
Definition at line 218 of file cobain.h. Referenced by ConstructL(), GetServiceID(), and ~CNetworkPeer(). |
|
|
Definition at line 227 of file cobain.h. Referenced by ConnectL(). |
1.3.5