int NetInterface::read ( const int  BUFFER_SIZE  ) 

Definition at line 84 of file NetInterface.cpp.

00085 {       
00086         char* tmp = new char[BUFFER_SIZE+1];
00087         
00088         int bytesCount = 0;
00089         int readBytes = recv(outDescr, tmp, BUFFER_SIZE, 0);
00090         
00091         tmp[readBytes] = '\0';
00092         
00093         readbuffer.append(tmp);
00094         
00095         delete[] tmp;
00096         
00097         bytesCount = readBytes;
00098                 
00099         return bytesCount;
00100 }       


Generated on Wed Jun 25 14:47:11 2008 for keyvil by  doxygen 1.5.1