#include <bluetoothcommunicator.h>
Public Member Functions | |
| ~CBTCommunicator () | |
| RSocket * | ConnectL (TPeerData *aPeerData) |
| Connects to a remote service. | |
| void | DiscoverPeersL (const RMessage &aMessage, CServerSession &aSession) |
| Discover all matching bluetooth peers. | |
| CConcreteConnection * | StartListeningL (const TInt aServiceClassID, const TInt aApplicationID, const TDesC8 &aServiceName, const TDesC8 &aServiceDesc, TInt aListeningSocketType) |
| Sets up a service described by the parameters and starts listening for incoming connections. | |
| void | StopListeningL () |
| Stops listening for inbound connections. | |
Static Public Member Functions | |
| CBTCommunicator * | NewL (CServerSession *aSession) |
| TInt | ResolveMTU (RSocket &socket) |
| Resolves bearer specific MTU for sockets created by this communicator type. | |
Private Member Functions | |
| CBTCommunicator (CServerSession *aSession) | |
| void | ConstructL () |
| void | StartAdvertisingL (TInt aPort, const TInt aServiceClassID, const TInt aApplicationID, const TDesC8 &aServiceName, const TDesC8 &aServiceDesc) |
| TInt | OpenListeningSocketL () |
| void | SetChannelSecurityL (TInt aChannel) |
| void | SetAvailabilityL (TBool aIsAvailable) |
Private Attributes | |
| CServerSession * | iServerSession |
| CBTDiscoverer * | iDiscoverer |
| TBool | iIsListening |
| TInt | iListeningSocketType |
| RSocketServ | iSocketServ |
| RSocket | iListeningSocket |
| CConcreteConnection * | iListeningConnection |
| CSdpAgent * | iAgent |
| RSdp | iSdpSession |
| RSdpDatabase | iSdpDB |
| TSdpServRecordHandle | iRecord |
| TInt | iRecordVersion |
Definition at line 54 of file bluetoothcommunicator.h.
|
|
Definition at line 44 of file bluetoothcommunicator.cpp. References iDiscoverer, iIsListening, iSdpDB, iSdpSession, iSocketServ, Log::Print(), and StopListeningL(). |
|
|
Definition at line 36 of file bluetoothcommunicator.cpp. References iServerSession. Referenced by NewL(). |
|
|
Connects to a remote service.
Definition at line 129 of file bluetoothcommunicator.cpp. References TPeerData::iDeviceAddress, iSocketServ, TPeerData::p, and Log::Print(). Referenced by CServerSession::ConnectL(). |
|
|
Definition at line 61 of file bluetoothcommunicator.cpp. References iSocketServ. Referenced by NewL(). |
|
||||||||||||
|
Discover all matching bluetooth peers. Invoking this method will launch an active object that takes care of the actual discovery, and will call aMessage.Complete() upon completion of the discovery.
Definition at line 77 of file bluetoothcommunicator.cpp. References TPeerData::iDeviceAddress, TPeerData::iDeviceName, iDiscoverer, TPeerData::iServiceName, iSocketServ, CBTDiscoverer::NewL(), TPeerData::p, CServerSession::SetPeerList(), CBTDiscoverer::StartL(), and TPeerDataList. Referenced by CServerSession::GetNumPeersL(). |
|
|
Definition at line 67 of file bluetoothcommunicator.cpp. References CBTCommunicator(), and ConstructL(). Referenced by CServerSession::ConstructL(). |
|
|
Definition at line 298 of file bluetoothcommunicator.cpp. References iListeningConnection, iListeningSocket, iListeningSocketType, iServerSession, iSocketServ, KListeningQueueSize, CConcreteConnection::NewListeningL(), and Log::Print(). Referenced by StartListeningL(). |
|
|
Resolves bearer specific MTU for sockets created by this communicator type.
Definition at line 446 of file bluetoothcommunicator.cpp. Referenced by CServerSession::ConnectL(), and CAsynchListen::RunL(). |
|
|
Definition at line 285 of file bluetoothcommunicator.cpp. References iRecord, iRecordVersion, and iSdpDB. Referenced by StartListeningL(). |
|
|
Definition at line 371 of file bluetoothcommunicator.cpp. References iListeningSocketType. Referenced by StartListeningL(). |
|
||||||||||||||||||||||||
|
Definition at line 208 of file bluetoothcommunicator.cpp. References iListeningSocketType, iRecord, iSdpDB, iSdpSession, and Log::Print(). Referenced by StartListeningL(). |
|
||||||||||||||||||||||||
|
Sets up a service described by the parameters and starts listening for incoming connections.
Definition at line 405 of file bluetoothcommunicator.cpp. References iIsListening, iListeningConnection, iListeningSocketType, KErrBTCommAlreadyListening, KerrBTCommFailedToCreateListeningSocket, OpenListeningSocketL(), Log::Print(), SetAvailabilityL(), SetChannelSecurityL(), and StartAdvertisingL(). Referenced by CServerSession::StartListen(). |
|
|
Stops listening for inbound connections.
Definition at line 186 of file bluetoothcommunicator.cpp. References iIsListening, iListeningConnection, iListeningSocketType, iRecord, iSdpDB, and Log::Print(). Referenced by CServerSession::AbortListen(), ~CBTCommunicator(), and CServerSession::~CServerSession(). |
|
|
Definition at line 142 of file bluetoothcommunicator.h. |
|
|
Definition at line 128 of file bluetoothcommunicator.h. Referenced by DiscoverPeersL(), and ~CBTCommunicator(). |
|
|
Definition at line 131 of file bluetoothcommunicator.h. Referenced by StartListeningL(), StopListeningL(), and ~CBTCommunicator(). |
|
|
Definition at line 139 of file bluetoothcommunicator.h. Referenced by OpenListeningSocketL(), StartListeningL(), and StopListeningL(). |
|
|
Definition at line 138 of file bluetoothcommunicator.h. Referenced by OpenListeningSocketL(). |
|
|
Definition at line 134 of file bluetoothcommunicator.h. Referenced by OpenListeningSocketL(), SetChannelSecurityL(), StartAdvertisingL(), StartListeningL(), and StopListeningL(). |
|
|
Definition at line 147 of file bluetoothcommunicator.h. Referenced by SetAvailabilityL(), StartAdvertisingL(), and StopListeningL(). |
|
|
Definition at line 150 of file bluetoothcommunicator.h. Referenced by SetAvailabilityL(). |
|
|
Definition at line 144 of file bluetoothcommunicator.h. Referenced by SetAvailabilityL(), StartAdvertisingL(), StopListeningL(), and ~CBTCommunicator(). |
|
|
Definition at line 143 of file bluetoothcommunicator.h. Referenced by StartAdvertisingL(), and ~CBTCommunicator(). |
|
|
Definition at line 125 of file bluetoothcommunicator.h. Referenced by CBTCommunicator(), and OpenListeningSocketL(). |
|
|
Definition at line 137 of file bluetoothcommunicator.h. Referenced by ConnectL(), ConstructL(), DiscoverPeersL(), OpenListeningSocketL(), and ~CBTCommunicator(). |
1.3.5