# TMCMessageStream Class Reference
[MCCore]

List of all members.

## Public Member Functions
| TMCMessageStream (TMCSocket &socket)
void | Send (const TMCString &message)
void | Receive (TMCDynamicString &message)
## Protected Attributes
TMCSocket & | fSocket
TMCArray< int8 > | fBuffer
int32 | fBufferCount
| number of characters read in the buffer
int32 | fCurrentPosition
| position in the buffer
## Private Types
enum | { kBufferSize = 256 }

## Detailed Description

Simple class to send or get strings on a socket.

## Member Enumeration Documentation

anonymous enum`[private]`

Enumerator:

  kBufferSize |

## Constructor & Destructor Documentation

TMCMessageStream::TMCMessageStream | ( | TMCSocket & | socket | ) |

create a stream on a connected socket

## Member Function Documentation

void TMCMessageStream::Receive | ( | TMCDynamicString & | message | ) |

reads 0 terminated message

void TMCMessageStream::Send | ( | const TMCString & | message | ) |

sends 0 terminated message

## Member Data Documentation

TMCArray<int8> TMCMessageStream::fBuffer`[protected]`

int32 TMCMessageStream::fBufferCount`[protected]`

number of characters read in the buffer

int32 TMCMessageStream::fCurrentPosition`[protected]`

position in the buffer

TMCSocket& TMCMessageStream::fSocket`[protected]`

The documentation for this class was generated from the following file:

- MCSocket.h