Logo
~Sockets~
~Examples~
~Contact~


TcpSocket::MES Struct Reference
[Internal utility]

Dynamic output buffer storage struct. More...

List of all members.


Public Member Functions

 MES (const char *buf_in, size_t len_in)
 ~MES ()
size_t left ()
char * curbuf ()

Public Attributes

char * buf
size_t len
size_t ptr

Detailed Description

Dynamic output buffer storage struct.

Definition at line 57 of file TcpSocket.h.


Constructor & Destructor Documentation

TcpSocket::MES::MES ( const char *  buf_in,
size_t  len_in 
) [inline]

Definition at line 58 of file TcpSocket.h.

00059                 :buf(new  char[len_in])
00060                 ,len(len_in)
00061                 ,ptr(0)
00062                 {
00063                         memcpy(buf,buf_in,len);
00064                 }

TcpSocket::MES::~MES (  )  [inline]

Definition at line 65 of file TcpSocket.h.

00065 { delete[] buf; }


Member Function Documentation

size_t TcpSocket::MES::left (  )  [inline]

Definition at line 66 of file TcpSocket.h.

00066 { return len - ptr; }

char* TcpSocket::MES::curbuf (  )  [inline]

Definition at line 67 of file TcpSocket.h.

00067 { return buf + ptr; }


Member Data Documentation

Definition at line 68 of file TcpSocket.h.

Definition at line 69 of file TcpSocket.h.

Definition at line 70 of file TcpSocket.h.


The documentation for this struct was generated from the following file:
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4