Inheritance diagram for CP_SMTPResponse:
Public Types | |
enum | { kCP_SMTP__ServiceReady = 220, kCP_SMTP__ServiceClose = 221, kCP_SMTP__RequestOK = 250, kCP_SMTP__NotLocal = 251, kCP_SMTP__StartMail = 354 } |
Public Member Functions | |
Getters | |
CP_String | GetResponseString () |
CP_String | GetBodyString () |
SInt32 | GetResponseCode () |
Setters | |
void | SetResponseString (const CP_String &inResponse) |
void | SetResponseCode (SInt32 inResponseCode) |
void | ResetResponse () |
Setters | |
void | SetResponseString (const CP_String &inResponse) |
void | SetResponseCode (SInt32 inResponseCode) |
void | ResetResponse () |
Getters | |
CP_String | GetResponseString () |
CP_String | GetBodyString () |
SInt32 | GetResponseCode () |
Setters | |
void | SetResponseString (const CP_String &inResponse) |
void | SetResponseCode (SInt32 inResponseCode) |
void | ResetResponse () |
Constructor / Destructor | |
CP_SMTPResponse (CP_Socket *inSocket) | |
Constructor. | |
CP_SMTPResponse (const CP_SMTPResponse &inResponse) | |
virtual | ~CP_SMTPResponse () throw () |
Destructor. | |
Server response | |
virtual bool | GetServerResponse () |
Getters | |
CP_String | GetResponseString () |
CP_String | GetBodyString () |
SInt32 | GetResponseCode () |
Setters | |
void | SetResponseString (const CP_String &inResponse) |
void | SetResponseCode (SInt32 inResponseCode) |
void | ResetResponse () |
Protected Member Functions | |
Misc | |
SInt32 | ReadLine (CP_Socket *inSocket, CP_String &inOutResult) |
Misc | |
SInt32 | ReadLine (CP_Socket *inSocket, CP_String &inOutResult) |
Misc | |
SInt32 | ReadLine (CP_Socket *inSocket, CP_String &inOutResult) |
Misc | |
SInt32 | ReadLine (CP_Socket *inSocket, CP_String &inOutResult) |
Protected Attributes | |
CP_String | fServerResponseString |
CP_String | fServerBodyString |
SInt32 | fServerResponseCode |
CP_Socket * | fSocketConnection |
|
|
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Copies the response of the server into this object, and returns true if the server has a response.
Reimplemented from CP_InternetResponse. |
|
Return the text of the response.
|
|
Return the text of the response.
|
|
Return the resonse code
|
|
Sets the text of the response. This text comes from the server.
|
|
Sets the response code. This text comes from the server.
|
|
Resets the fields of this response to initial or empty values.
|
|
Receive the next line from our server. We keep receiving until the end of line is reached.
|
|
|
|
CP_String containing the response from the server. |
|
CP_String containing the body of the response from the server |
|
Any numeric response code from the server. |