#include <cobain.h>
Public Member Functions | |
| IMPORT_C void | SetSocketListener (MSocketListener *aSocketListener) |
| Registers a socket listener. | |
| IMPORT_C void | SendL (const TDesC8 *aBuffer) |
| Asynchronously writes data to the socket. | |
| IMPORT_C void | Close (TBool aImmediately=EFalse) |
| Closes this socket. | |
| IMPORT_C | ~RCobainSocket () |
| Deletes this object. | |
Private Member Functions | |
| RCobainSocket (RCobainClientSession &aSession, TInt aId) | |
| void | RunL () |
| void | DoCancel () |
| void | Receive () |
Private Attributes | |
| TBool | iIsClosed |
| TInt | iId |
| RCobainClientSession & | iSession |
| MSocketListener * | iSocketListener |
| TBuf8< KRecvBufSize > | iRecvBuf |
The underlying network medium is transparent to the user.
Definition at line 95 of file cobain.h.
|
|
Deletes this object. Closes the socket if it is still open. Definition at line 38 of file cobainsocket.cpp. References Close(), and iSocketListener. |
|
||||||||||||
|
Definition at line 28 of file cobainsocket.cpp. |
|
|
Closes this socket. This is a synchronous operation.
Definition at line 59 of file cobainsocket.cpp. References RCobainClientSession::CloseSocket(), iId, iIsClosed, and iSession. Referenced by RunL(), and ~RCobainSocket(). |
|
|
Definition at line 105 of file cobainsocket.cpp. |
|
|
Definition at line 91 of file cobainsocket.cpp. References iId, iRecvBuf, iSession, Log::Print(), and RCobainClientSession::Receive(). Referenced by RunL(), and SetSocketListener(). |
|
|
Definition at line 110 of file cobainsocket.cpp. References Close(), MSocketListener::Data(), iRecvBuf, iSocketListener, Log::Print(), Receive(), MSocketListener::SocketDisconnected(), and MSocketListener::SocketError(). |
|
|
Asynchronously writes data to the socket.
Definition at line 47 of file cobainsocket.cpp. References iId, iIsClosed, iSession, iSocketListener, KErrCobainSocketClosed, RCobainClientSession::Send(), and MSocketListener::SocketError(). |
|
|
Registers a socket listener. The socket starts receiving data immediately. Upon receiving new data, Data() method of the listener is called.
Definition at line 76 of file cobainsocket.cpp. References iSocketListener, KErrCobainSocketNullSocketListener, and Receive(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 142 of file cobain.h. Referenced by RunL(), SendL(), SetSocketListener(), and ~RCobainSocket(). |
1.3.5