Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PINDEX PPOP3::ParseResponse ( const PString line  )  [protected, virtual, inherited]

Parse a response line string into a response code and any extra info on the line. Results are placed into the member variables lastResponseCode and lastResponseInfo.

The default bahaviour looks for a space or a '-' and splits the code and info either side of that character, then returns FALSE.

Position of continuation character in response, 0 if no continuation lines are possible.
line  Input response line to be parsed

Reimplemented from PInternetProtocol.

Definition at line 911 of file inetmail.cxx.

References PString::Find(), and PString::Mid().

  lastResponseCode = line[0] == '+';
  PINDEX endCode = line.Find(' ');
  if (endCode != P_MAX_INDEX)
    lastResponseInfo = line.Mid(endCode+1);
    lastResponseInfo = PString();
  return 0;

Generated by  Doxygen 1.6.0   Back to index