#include <cobain.h>
Public Member Functions | |
| IMPORT_C | ~CNetworkPeer () |
| Deallocates the peer object. | |
| IMPORT_C TDesC & | GetDeviceName () const |
| Returns the peer device name. | |
| IMPORT_C TDesC8 & | GetDeviceAddress () const |
| Returns the peer device address. | |
| IMPORT_C TDesC & | GetServiceName () const |
| Returns the service name. | |
| IMPORT_C RCobainSocket * | ConnectL () |
| Connects to the remote peer service. | |
| IMPORT_C TProtocol | GetProtocol () const |
| Returns the protocol (type) of the peer. | |
Data Fields | |
| TSglQueLink | iLink |
Private Member Functions | |
| CNetworkPeer (RCobainClientSession &aSession, TProtocol aProtocol) | |
| void | ConstructL (TPeerData &aPeerData) |
| 2nd phase constructor | |
| TDesC8 * | CopyPeerPropertiesL (TPeerData &aPeerData) |
| Creates protocol specific peer properties. | |
| TDes8 * | GetPeerProperties () const |
| Returns a pointer to the peer's protocol specific properties. | |
| void | WritePeerData (TPeerData &aPeerData) |
| Write the peer data information into a TPeerData structure. | |
Static Private Member Functions | |
| CNetworkPeer * | NewL (RCobainClientSession &aSession, TProtocol aProtocol, TPeerData &aPeerData) |
Private Attributes | |
| TProtocol | iProtocol |
| HBufC * | iDeviceName |
| HBufC8 * | iDeviceAddress |
| HBufC * | iServiceName |
| RCobainClientSession & | iSession |
| TDes8 * | iProtocolSpecificPeerData |
A peer is in essence a network service with which the client shares a protocol.
Definition at line 159 of file cobain.h.
|
|
Deallocates the peer object.
Definition at line 90 of file networkpeer.cpp. References iDeviceAddress, iDeviceName, iProtocolSpecificPeerData, and iServiceName. |
|
||||||||||||
|
Definition at line 29 of file networkpeer.cpp. Referenced by NewL(). |
|
|
Connects to the remote peer service.
Definition at line 98 of file networkpeer.cpp. References RCobainClientSession::ConnectSocketL(), and iSession. |
|
|
2nd phase constructor
Definition at line 48 of file networkpeer.cpp. References CopyPeerPropertiesL(), TPeerData::iDeviceAddress, iDeviceAddress, TPeerData::iDeviceName, iDeviceName, TPeerData::iServiceName, and iServiceName. Referenced by NewL(). |
|
|
Creates protocol specific peer properties.
Definition at line 58 of file networkpeer.cpp. References EBluetooth, iProtocol, iProtocolSpecificPeerData, TPeerData::p, and TBTPeerPropertiesBuf. Referenced by ConstructL(). |
|
|
Returns the peer device address.
Definition at line 175 of file cobain.h. References iDeviceAddress. Referenced by CBTUtil::FormatAddress(), and WritePeerData(). |
|
|
Returns the peer device name.
Definition at line 170 of file cobain.h. References iDeviceName. Referenced by WritePeerData(). |
|
|
Returns a pointer to the peer's protocol specific properties. The contents of this buffer depend on the protocol of the peer. Definition at line 216 of file cobain.h. References iProtocolSpecificPeerData. Referenced by CBTUtil::GetListenPortL(). |
|
|
Returns the protocol (type) of the peer.
Definition at line 190 of file cobain.h. References iProtocol, and TProtocol. Referenced by RCobainClientSession::ConnectSocketL(), and CBTUtil::FormatAddress(). |
|
|
Returns the service name.
Definition at line 180 of file cobain.h. References iServiceName. |
|
||||||||||||||||
|
Definition at line 36 of file networkpeer.cpp. References CNetworkPeer(), and ConstructL(). Referenced by CPeerListPump::AddPeerToListL(). |
|
|
Write the peer data information into a TPeerData structure.
Definition at line 73 of file networkpeer.cpp. References EBluetooth, GetDeviceAddress(), GetDeviceName(), TPeerData::iDeviceAddress, TPeerData::iDeviceName, iProtocol, iProtocolSpecificPeerData, and TPeerData::p. Referenced by RCobainClientSession::ConnectSocketL(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 230 of file cobain.h. Referenced by ConstructL(), GetDeviceAddress(), and ~CNetworkPeer(). |
|
|
Definition at line 227 of file cobain.h. Referenced by ConstructL(), GetDeviceName(), and ~CNetworkPeer(). |
|
|
|
|
|
Definition at line 224 of file cobain.h. Referenced by CopyPeerPropertiesL(), GetProtocol(), and WritePeerData(). |
|
|
Definition at line 239 of file cobain.h. Referenced by CopyPeerPropertiesL(), GetPeerProperties(), WritePeerData(), and ~CNetworkPeer(). |
|
|
Definition at line 233 of file cobain.h. Referenced by ConstructL(), GetServiceName(), and ~CNetworkPeer(). |
|
|
Definition at line 236 of file cobain.h. Referenced by ConnectL(). |
1.3.5