Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: smsustrm.h
Link against: smsu.lib

Class RSmsSocketBuf

class RSmsSocketBuf : public TStreamBuf;

Support

Supported from 6.1

Description

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

Derivation

MStreamBufA stream buffer that provides a generic I/O interface for streamed data
RSmsSocketBufAn SMS stream buffer to read and write over a socket
TStreamBufAdds buffering capabilities to a stream buffer

Defined in RSmsSocketBuf:
DoSynchL(), Lag(), Lag(), OverflowL(), RSmsSocketBuf(), SocketWriteL(), UnderflowL(), iBuffer, iSocket

Inherited from MStreamBuf:
Close(), DoRelease(), DoSeekL(), ERead, EWrite, PushL(), Read(), ReadL(), Release(), SeekL(), SizeL(), Synch(), SynchL(), TMark, TRead, TWrite, TellL(), Write(), WriteL()

Inherited from TStreamBuf:
Avail(), DoReadL(), DoWriteL(), End(), Ptr(), SetBuf(), SetEnd(), SetPtr(), TArea


Member functions


UnderflowL()

private: TInt UnderflowL(TInt aMaxLength);

Description

Fills the buffer's read area from the socket.

The function panics if the socket is not readable.

Parameters

TInt aMaxLength

Unused

Return value

TInt

The length of the buffer

Leave codes

Socket read errors


OverflowL()

private: void OverflowL();

Description

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

The function panics if the socket is not writable.


DoSynchL()

private: void DoSynchL();

Description

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

[Top]


Internal members


RSmsSocketBuf()

RSmsSocketBuf(RSocket& aSocket);

Description

This member is internal and not intended for use.


SocketWriteL()

private: void SocketWriteL();

Description

This member is internal and not intended for use.


Lag()

private: inline TInt Lag(TRead) const;

Description

This member is internal and not intended for use.


Lag()

private: inline TInt Lag(TWrite) const;

Description

This member is internal and not intended for use.


iSocket

private: RSocket& iSocket;

Description

This member is internal and not intended for use.


iBuffer

private: TUint8 iBuffer [ KSmsMaxSegmentLength ];

Description

This member is internal and not intended for use.