Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

CServerSession Class Reference

Cobain serverside session. More...

#include <serversession.h>


Public Member Functions

void ServiceL (const RMessage &aMessage)
void SetPeerList (TPeerDataList *aPeerList)
void DeallocateConnection (CConcreteConnection *aConnection)
TInt AllocateConnection (CConcreteConnection *aConnection)
CConcreteConnectionGetConnection (TInt id)

Static Public Member Functions

CServerSessionNewL (RThread &aClient, CCobainServer *aServer)
void PanicClient (const RMessage &aMessage, CCobainServer::TServerPanic aPanic)

Private Member Functions

 CServerSession (RThread &aClient, CCobainServer *aServer)
void ConstructL ()
 ~CServerSession ()
void GetNumPeersL (const RMessage &aMessage)
void GetPeer (const RMessage &aMessage)
void Send (const RMessage &aMessage)
void Receive (const RMessage &aMessage)
void CancelReceive (const RMessage &aMessage)
void StartListen (const RMessage &aMessage)
void AbortListen (const RMessage &aMessage)
void GetIncomingConnection (const RMessage &aMessage)
void ConnectL (const RMessage &aMessage)
void CloseSocket (const RMessage &aMessage)

Private Attributes

CConcreteConnectioniConnections [KMaxSocketCount]
CBTCommunicatoriBTCommunicator
TPeerDataListiPeerList
CCobainServeriServer
CConcreteConnectioniListeningConnection


Detailed Description

Cobain serverside session.

Author:
Matti Dahlbom
Version:
beta0_9_1_2004-01-13, 1.29

Definition at line 59 of file serversession.h.


Constructor & Destructor Documentation

CServerSession::CServerSession RThread &  aClient,
CCobainServer aServer
[private]
 

Definition at line 31 of file serversession.cpp.

References iConnections, and Log::Print().

Referenced by NewL().

CServerSession::~CServerSession  )  [private]
 

Definition at line 42 of file serversession.cpp.

References CConcreteConnection::Close(), CCobainServer::DecrementSession(), iBTCommunicator, iConnections, iPeerList, iServer, KMaxSocketCount, Log::Print(), and CBTCommunicator::StopListeningL().


Member Function Documentation

void CServerSession::AbortListen const RMessage &  aMessage  )  [private]
 

Definition at line 331 of file serversession.cpp.

References EBluetooth, iBTCommunicator, iListeningConnection, PanicClient(), Log::Print(), and CBTCommunicator::StopListeningL().

Referenced by ServiceL().

TInt CServerSession::AllocateConnection CConcreteConnection aConnection  ) 
 

Definition at line 111 of file serversession.cpp.

References iConnections, CConcreteConnection::IsListening(), KErrSessionTryingToAllocListeningCon, KMaxSocketCount, CCobainServer::PanicServer(), and Log::Print().

Referenced by ConnectL(), and CAsynchListen::RunL().

void CServerSession::CancelReceive const RMessage &  aMessage  )  [private]
 

Definition at line 363 of file serversession.cpp.

References CConcreteConnection::CancelReceive(), GetConnection(), and Log::Print().

Referenced by ServiceL().

void CServerSession::CloseSocket const RMessage &  aMessage  )  [private]
 

Definition at line 261 of file serversession.cpp.

References CConcreteConnection::Close(), DeallocateConnection(), GetConnection(), and Log::Print().

Referenced by ServiceL().

void CServerSession::ConnectL const RMessage &  aMessage  )  [private]
 

Definition at line 215 of file serversession.cpp.

References AllocateConnection(), CBTCommunicator::ConnectL(), EBluetooth, iBTCommunicator, PanicClient(), Log::Print(), CBTCommunicator::ResolveMTU(), and TPeerDataBuf.

Referenced by ServiceL().

void CServerSession::ConstructL  )  [private]
 

Definition at line 87 of file serversession.cpp.

References iBTCommunicator, CCobainServer::IncrementSession(), iServer, and CBTCommunicator::NewL().

Referenced by NewL().

void CServerSession::DeallocateConnection CConcreteConnection aConnection  ) 
 

Definition at line 138 of file serversession.cpp.

References iConnections, CConcreteConnection::IsListening(), KErrSessionTryingToDeallocListeningCon, KMaxSocketCount, and Log::Print().

Referenced by CloseSocket(), and CConcreteConnection::~CConcreteConnection().

CConcreteConnection * CServerSession::GetConnection TInt  id  ) 
 

Definition at line 96 of file serversession.cpp.

References iConnections, KErrSessionBadSocketTableIndex, KErrSessionConnectionNotFoundInGet, and KMaxSocketCount.

Referenced by CancelReceive(), CloseSocket(), Receive(), and Send().

void CServerSession::GetIncomingConnection const RMessage &  aMessage  )  [private]
 

Definition at line 285 of file serversession.cpp.

References iListeningConnection, CConcreteConnection::ListenL(), and PanicClient().

Referenced by ServiceL().

void CServerSession::GetNumPeersL const RMessage &  aMessage  )  [private]
 

Definition at line 188 of file serversession.cpp.

References CBTCommunicator::DiscoverPeersL(), EBluetooth, iBTCommunicator, iPeerList, and PanicClient().

Referenced by ServiceL().

void CServerSession::GetPeer const RMessage &  aMessage  )  [private]
 

Definition at line 165 of file serversession.cpp.

References iPeerList, Log::Print(), and TPeerDataBuf.

Referenced by ServiceL().

CServerSession * CServerSession::NewL RThread &  aClient,
CCobainServer aServer
[static]
 

Definition at line 76 of file serversession.cpp.

References ConstructL(), and CServerSession().

Referenced by CCobainServer::NewSessionL().

void CServerSession::PanicClient const RMessage &  aMessage,
CCobainServer::TServerPanic  aPanic
[static]
 

Definition at line 451 of file serversession.cpp.

Referenced by AbortListen(), ConnectL(), GetIncomingConnection(), GetNumPeersL(), ServiceL(), and StartListen().

void CServerSession::Receive const RMessage &  aMessage  )  [private]
 

Definition at line 351 of file serversession.cpp.

References GetConnection(), Log::Print(), and CConcreteConnection::ReceiveL().

Referenced by ServiceL().

void CServerSession::Send const RMessage &  aMessage  )  [private]
 

Definition at line 376 of file serversession.cpp.

References GetConnection(), Log::Print(), and CConcreteConnection::SendL().

Referenced by ServiceL().

void CServerSession::ServiceL const RMessage &  aMessage  ) 
 

Definition at line 405 of file serversession.cpp.

References AbortListen(), CancelReceive(), CloseSocket(), ConnectL(), GetIncomingConnection(), GetNumPeersL(), GetPeer(), PanicClient(), Receive(), Send(), and StartListen().

void CServerSession::SetPeerList TPeerDataList aPeerList  ) 
 

Definition at line 155 of file serversession.cpp.

References iPeerList, and TPeerDataList.

Referenced by CBTCommunicator::DiscoverPeersL(), and CBTDiscoverer::FinishDiscovery().

void CServerSession::StartListen const RMessage &  aMessage  )  [private]
 

Definition at line 300 of file serversession.cpp.

References EBluetooth, iBTCommunicator, iListeningConnection, PanicClient(), and CBTCommunicator::StartListeningL().

Referenced by ServiceL().


Field Documentation

CBTCommunicator* CServerSession::iBTCommunicator [private]
 

Definition at line 98 of file serversession.h.

Referenced by AbortListen(), ConnectL(), ConstructL(), GetNumPeersL(), StartListen(), and ~CServerSession().

CConcreteConnection* CServerSession::iConnections[KMaxSocketCount] [private]
 

Definition at line 96 of file serversession.h.

Referenced by AllocateConnection(), CServerSession(), DeallocateConnection(), GetConnection(), and ~CServerSession().

CConcreteConnection* CServerSession::iListeningConnection [private]
 

Definition at line 104 of file serversession.h.

Referenced by AbortListen(), GetIncomingConnection(), and StartListen().

TPeerDataList* CServerSession::iPeerList [private]
 

Definition at line 100 of file serversession.h.

Referenced by GetNumPeersL(), GetPeer(), SetPeerList(), and ~CServerSession().

CCobainServer* CServerSession::iServer [private]
 

Definition at line 101 of file serversession.h.

Referenced by ConstructL(), and ~CServerSession().


The documentation for this class was generated from the following files:
Generated on Tue Jan 13 15:47:09 2004 for CobainAPIImplementation by doxygen 1.3.5