aboutsummaryrefslogtreecommitdiffstats
path: root/vmime/net/smtp/SMTPResponse.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'vmime/net/smtp/SMTPResponse.hpp')
-rw-r--r--vmime/net/smtp/SMTPResponse.hpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/vmime/net/smtp/SMTPResponse.hpp b/vmime/net/smtp/SMTPResponse.hpp
index e0a5e1cd..000448ac 100644
--- a/vmime/net/smtp/SMTPResponse.hpp
+++ b/vmime/net/smtp/SMTPResponse.hpp
@@ -50,8 +50,6 @@ namespace smtp {
*/
class VMIME_EXPORT SMTPResponse : public object
{
- friend class vmime::creator;
-
public:
/** Current state of response parser. */
@@ -104,7 +102,7 @@ public:
* @throws exceptions::operation_timed_out if no data
* has been received within the granted time
*/
- static ref <SMTPResponse> readResponse(ref <socket> sok, ref <timeoutHandler> toh, const state& st);
+ static shared_ptr <SMTPResponse> readResponse(shared_ptr <socket> sok, shared_ptr <timeoutHandler> toh, const state& st);
/** Return the SMTP response code.
*
@@ -152,7 +150,7 @@ public:
private:
- SMTPResponse(ref <socket> sok, ref <timeoutHandler> toh, const state& st);
+ SMTPResponse(shared_ptr <socket> sok, shared_ptr <timeoutHandler> toh, const state& st);
SMTPResponse(const SMTPResponse&);
void readResponse();
@@ -166,8 +164,8 @@ private:
std::vector <responseLine> m_lines;
- ref <socket> m_socket;
- ref <timeoutHandler> m_timeoutHandler;
+ shared_ptr <socket> m_socket;
+ shared_ptr <timeoutHandler> m_timeoutHandler;
string m_responseBuffer;
bool m_responseContinues;