RSmsSocketBuf Class Reference

class RSmsSocketBuf : public TStreamBuf

An SMS stream buffer to read and write over a socket.

Inherits from

Public Member Functions
RSmsSocketBuf(RSocket &)
Private Member Functions
voidDoSynchL()
TInt Lag(TRead)
TInt Lag(TWrite)
voidOverflowL()
voidSocketWriteL()
TInt UnderflowL(TInt)
Inherited Functions
MStreamBuf::Close()
MStreamBuf::MStreamBuf()
MStreamBuf::PushL()
MStreamBuf::Read(TDes8 &,TInt,TRequestStatus &)
MStreamBuf::Read(TDes8 &,TRequestStatus &)
MStreamBuf::ReadL(MStreamInput &)
MStreamBuf::ReadL(MStreamInput &,TInt)
MStreamBuf::ReadL(MStreamInput &,TStreamTransfer)
MStreamBuf::ReadL(TAny *,TInt)
MStreamBuf::ReadL(TDes8 &,TInt,TRequestStatus &)
MStreamBuf::ReadL(TDes8 &,TRequestStatus &)
MStreamBuf::Release()
MStreamBuf::SeekL(TMark,TStreamLocation,TInt)
MStreamBuf::SeekL(TMark,TStreamPos)
MStreamBuf::SeekL(TRead,TInt)
MStreamBuf::SeekL(TRead,TStreamLocation,TInt)
MStreamBuf::SeekL(TWrite,TInt)
MStreamBuf::SeekL(TWrite,TStreamLocation,TInt)
MStreamBuf::SizeL()const
MStreamBuf::Synch()
MStreamBuf::SynchL()
MStreamBuf::TellL(TRead)const
MStreamBuf::TellL(TWrite)const
MStreamBuf::Write(const TDesC8 &,TInt,TRequestStatus &)
MStreamBuf::Write(const TDesC8 &,TRequestStatus &)
MStreamBuf::WriteL(MStreamOutput &)
MStreamBuf::WriteL(MStreamOutput &,TInt)
MStreamBuf::WriteL(MStreamOutput &,TStreamTransfer)
MStreamBuf::WriteL(const TAny *,TInt)
MStreamBuf::WriteL(const TDesC8 &,TInt,TRequestStatus &)
MStreamBuf::WriteL(const TDesC8 &,TRequestStatus &)
TStreamBuf::Avail(TArea)const
TStreamBuf::Avail(TRead)const
TStreamBuf::Avail(TWrite)const
TStreamBuf::DoReadL(MStreamInput &,TStreamTransfer)
TStreamBuf::DoReadL(TAny *,TInt)
TStreamBuf::DoWriteL(MStreamOutput &,TStreamTransfer)
TStreamBuf::DoWriteL(const TAny *,TInt)
TStreamBuf::End(TArea)const
TStreamBuf::End(TRead)const
TStreamBuf::End(TWrite)const
TStreamBuf::Ptr(TArea)const
TStreamBuf::Ptr(TRead)const
TStreamBuf::Ptr(TWrite)const
TStreamBuf::SetBuf(TArea,TUint8 *,TUint8 *)
TStreamBuf::SetBuf(TRead,TUint8 *,TUint8 *)
TStreamBuf::SetBuf(TWrite,TUint8 *,TUint8 *)
TStreamBuf::SetEnd(TArea,TUint8 *)
TStreamBuf::SetEnd(TRead,TUint8 *)
TStreamBuf::SetEnd(TWrite,TUint8 *)
TStreamBuf::SetPtr(TArea,TUint8 *)
TStreamBuf::SetPtr(TRead,TUint8 *)
TStreamBuf::SetPtr(TWrite,TUint8 *)
TStreamBuf::TStreamBuf()
Inherited Enumerations
MStreamBuf:TRead
MStreamBuf:TWrite
Private Attributes
TUint8 iBuffer
RSocket &iSocket

Constructor & Destructor Documentation

RSmsSocketBuf(RSocket &)

RSmsSocketBuf(RSocket &aSocket)

Constructor

Parameters

RSocket & aSocketrepresenting the socket the buffer reads and writes to.

Member Functions Documentation

DoSynchL()

voidDoSynchL()[private, virtual]

Synchronises the stream buffer with the stream, leaving if any error occurs.

Lag(TRead)

TInt Lag(TRead)const [private, inline]

Parameters

TRead

Lag(TWrite)

TInt Lag(TWrite)const [private, inline]

Parameters

TWrite

OverflowL()

voidOverflowL()[private, virtual]

Empties the buffer and sets up the buffer's write area.

The function panics if the socket is not writable.

SocketWriteL()

voidSocketWriteL()[private]

Writes the buffered data to the socket.

UnderflowL(TInt)

TInt UnderflowL(TIntaMaxLength)[private, virtual]

Fills the buffer's read area from the socket.

leave
The function panics if the socket is not readable.

Parameters

TInt aMaxLengthUnused

Member Data Documentation

TUint8 iBuffer

TUint8 iBuffer[private]

RSocket & iSocket

RSocket &iSocket[private]