• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kioslave

FtpTextReader Class Reference

#include <ftp.h>

Inheritance diagram for FtpTextReader:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { textReadBuffer = 2048, textReadLimit = 1024 }

Public Member Functions

 FtpTextReader ()
void textClear ()
bool textEOF () const
const char * textLine () const
int textRead (FtpSocket *pSock)
bool textTooLong () const

Detailed Description

Definition at line 59 of file ftp.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
textReadBuffer 

This is the physical size of m_szText.

Only up to textReadLimit characters are used to store a server reply. If the server reply is longer, the stored line gets truncated - see textTooLong()!

textReadLimit 

Max number of chars returned from textLine().

If the server sends more all chars until the next new-line are discarded.

Definition at line 92 of file ftp.h.


Constructor & Destructor Documentation

FtpTextReader::FtpTextReader (  )  [inline]

Definition at line 62 of file ftp.h.


Member Function Documentation

void FtpTextReader::textClear (  ) 

Resets the status of the object, also called from xtor.

Definition at line 165 of file ftp.cc.

bool FtpTextReader::textEOF (  )  const [inline]

Returns true if the last textRead() got an EOF or an error.

Definition at line 90 of file ftp.h.

const char* FtpTextReader::textLine (  )  const [inline]

An accessor to the data read by textRead().

Definition at line 80 of file ftp.h.

int FtpTextReader::textRead ( FtpSocket *  pSock  ) 

Read a line from the socket into m_szText.

Only the first RESP_READ_LIMIT characters are copied. If the server response is longer all extra data up to the new-line gets discarded. An ending CR gets stripped. The number of chars in the buffer is returned. Use textToLong() to check for truncation!

Definition at line 171 of file ftp.cc.

bool FtpTextReader::textTooLong (  )  const [inline]

Returns true if the last textRead() resulted in a truncated line.

Definition at line 85 of file ftp.h.


The documentation for this class was generated from the following files:
  • ftp.h
  • ftp.cc

kioslave

Skip menu "kioslave"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal