#include <concreteconnection.h>
Public Types | |
| enum | TConnectionFailure { ENoSocket = 67000, ESocketClosed, EBadMessage } |
| enum | TInitError { ENullSocket = 68000, ENullSocketServ } |
Public Member Functions | |
| CServerSession & | GetSession () |
| ~CConcreteConnection () | |
| TBool | IsListening () |
| void | ReceiveL (const RMessage &aMessage) |
| void | CancelReceive () |
| void | Close (TBool aImmediately=EFalse) |
| Closes the wrapped socket. | |
| void | SendL (TDesC8 *aBuf) |
| void | ListenL (const RMessage &aMessage) |
| void | CancelListen () |
Static Public Member Functions | |
| CConcreteConnection * | NewL (RSocket *aSocket, CServerSession &aSession) |
| CConcreteConnection * | NewListeningL (RSocket *aSocket, RSocketServ *aSocketServ, CServerSession &aSession) |
Private Member Functions | |
| CConcreteConnection (RSocket *aSocket, RSocketServ *aSocketServ, CServerSession &aSession) | |
| void | ConstructL (TBool aIsListening) |
| RSocket & | GetSocket () |
| RSocketServ & | GetSocketServ () |
Private Attributes | |
| TBool | iIsListening |
| TBool | iIsClosed |
| CServerSession & | iSession |
| RSocket * | iSocket |
| RSocketServ * | iSocketServ |
| CAsynchSend * | iSender |
| CAsynchListen * | iListener |
| CAsynchReceive * | iReceiver |
CConcreteConnection is a facade to the classes that actually manage the socket (CAsynchSend, CAsynchReceive, CASynchListen).
Matti Kokkola
Definition at line 48 of file concreteconnection.h.
|
|
Definition at line 51 of file concreteconnection.h. |
|
|
Definition at line 57 of file concreteconnection.h. |
|
|
Definition at line 73 of file concreteconnection.cpp. References Close(), CServerSession::DeallocateConnection(), iIsListening, iSession, and iSocketServ. |
|
||||||||||||||||
|
Definition at line 63 of file concreteconnection.cpp. Referenced by NewL(), and NewListeningL(). |
|
|
Definition at line 200 of file concreteconnection.cpp. References iListener. |
|
|
Definition at line 205 of file concreteconnection.cpp. References iReceiver. Referenced by CServerSession::CancelReceive(). |
|
|
Closes the wrapped socket. This operation is synchronous.
Definition at line 154 of file concreteconnection.cpp. References iIsClosed, iIsListening, iListener, iReceiver, iSender, iSocket, and Log::Print(). Referenced by CServerSession::CloseSocket(), CAsynchSend::RunError(), ~CConcreteConnection(), and CServerSession::~CServerSession(). |
|
|
Definition at line 89 of file concreteconnection.cpp. References CAsynchListen, CAsynchReceive, CAsynchSend, ENullSocket, iIsListening, iListener, iReceiver, iSender, iSocket, and Log::Print(). Referenced by NewL(), and NewListeningL(). |
|
|
Definition at line 69 of file concreteconnection.h. References iSession. Referenced by CAsynchListen::RunL(). |
|
|
Definition at line 94 of file concreteconnection.h. References iSocket. Referenced by CAsynchListen::DoCancel(), CAsynchReceive::DoCancel(), CAsynchSend::DoCancel(), CAsynchListen::ListenL(), CAsynchReceive::Receive(), and CAsynchSend::SendL(). |
|
|
Definition at line 95 of file concreteconnection.h. References iSocketServ. Referenced by CAsynchListen::ListenL(). |
|
|
Definition at line 72 of file concreteconnection.h. References iIsListening. Referenced by CServerSession::AllocateConnection(), and CServerSession::DeallocateConnection(). |
|
|
Definition at line 126 of file concreteconnection.cpp. References ENoSocket, iListener, iSocket, CAsynchListen::ListenL(), and Log::Print(). Referenced by CServerSession::GetIncomingConnection(). |
|
||||||||||||
|
Definition at line 35 of file concreteconnection.cpp. References CConcreteConnection(), and ConstructL(). Referenced by CAsynchListen::RunL(). |
|
||||||||||||||||
|
Definition at line 49 of file concreteconnection.cpp. References CConcreteConnection(), and ConstructL(). Referenced by CBTCommunicator::OpenListeningSocketL(). |
|
|
Definition at line 140 of file concreteconnection.cpp. References ESocketClosed, iReceiver, iSocket, Log::Print(), and CAsynchReceive::Receive(). Referenced by CServerSession::Receive(). |
|
|
Definition at line 110 of file concreteconnection.cpp. References ESocketClosed, iSender, iSocket, Log::Print(), and CAsynchSend::SendL(). Referenced by CServerSession::Send(). |
|
|
Definition at line 120 of file concreteconnection.h. Referenced by ConstructL(). |
|
|
Definition at line 121 of file concreteconnection.h. Referenced by ConstructL(). |
|
|
Definition at line 119 of file concreteconnection.h. Referenced by ConstructL(). |
|
|
Definition at line 101 of file concreteconnection.h. Referenced by Close(). |
|
|
Definition at line 98 of file concreteconnection.h. Referenced by Close(), ConstructL(), IsListening(), and ~CConcreteConnection(). |
|
|
Definition at line 114 of file concreteconnection.h. Referenced by CancelListen(), Close(), ConstructL(), and ListenL(). |
|
|
Definition at line 117 of file concreteconnection.h. Referenced by CancelReceive(), Close(), ConstructL(), and ReceiveL(). |
|
|
Definition at line 111 of file concreteconnection.h. Referenced by Close(), ConstructL(), and SendL(). |
|
|
Definition at line 104 of file concreteconnection.h. Referenced by GetSession(), and ~CConcreteConnection(). |
|
|
Definition at line 107 of file concreteconnection.h. Referenced by Close(), ConstructL(), GetSocket(), ListenL(), ReceiveL(), and SendL(). |
|
|
Definition at line 108 of file concreteconnection.h. Referenced by GetSocketServ(), and ~CConcreteConnection(). |
1.3.5