ESock::MSessionDataNotify Class Reference

class ESock::MSessionDataNotify

Abstract base class used by a CSubConnectionFlowBase to support session binders, through its iSocket member, to notify the socket server that various events have occurred.

The class provides several up-call member functions.

All up-calls on an MSocketNotify should be made in the context of the socket server's thread - i.e. the thread which called NewSAPL() on the protocol.

Since v9.3

Public Member Functions
void CanSend ()
void NewData ( TUint )

Member Functions Documentation

CanSend()

void CanSend ( ) [pure virtual]

Indicates that new buffer space is available on a service.

NewData(TUint)

void NewData ( TUint aCount ) [pure virtual]

Indicates that new data is available on a service access point

For a stream-oriented protocol aCount should be a byte count; for datagram-oriented sockets aCount should be a datagram count.

Note:

aCount is the amount of new data, not the total amount of data waiting to be read.

Parameters

TUint aCount The amount of new data. A value of KNewDataEndofData indicates that the socket is in a half-closed state and will receive no more data. Any subsequent reads will complete with KErrEof and a length of 0.