#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 92 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(), iSocketListener, and CCobainLayer::Log(). |
|
||||||||||||
|
Definition at line 28 of file cobainsocket.cpp. |
|
|
Closes this socket. This is a synchronous operation.
Definition at line 61 of file cobainsocket.cpp. References RCobainClientSession::CloseSocket(), iId, iIsClosed, iSession, and CCobainLayer::Log(). Referenced by RunL(), and ~RCobainSocket(). |
|
|
Definition at line 113 of file cobainsocket.cpp. References CCobainLayer::Log(). |
|
|
Definition at line 99 of file cobainsocket.cpp. References iId, iRecvBuf, iSession, CCobainLayer::Log(), and RCobainClientSession::Receive(). Referenced by RunL(), and SetSocketListener(). |
|
|
Definition at line 121 of file cobainsocket.cpp. References Close(), MSocketListener::Data(), iRecvBuf, iSocketListener, CCobainLayer::Log(), Receive(), MSocketListener::SocketDisconnected(), and MSocketListener::SocketError(). |
|
|
Asynchronously writes data to the socket.
Definition at line 49 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 84 of file cobainsocket.cpp. References iSocketListener, KErrCobainSocketNullSocketListener, and Receive(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 139 of file cobain.h. Referenced by RunL(), SendL(), SetSocketListener(), and ~RCobainSocket(). |
1.3.5