From e2201dc849e7d5ba3104021559630030f6a8eec0 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 23 Feb 2013 16:06:54 +0000 Subject: pop3: Introduced a custom POP3 structure for per-request data Created a new POP3 structure and changed the type of the pop3 proto variable in connectdata from FTP* to POP*. --- lib/pop3.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/pop3.h') diff --git a/lib/pop3.h b/lib/pop3.h index 6ef408e49..ca9e84b1b 100644 --- a/lib/pop3.h +++ b/lib/pop3.h @@ -22,6 +22,8 @@ * ***************************************************************************/ +#include "pingpong.h" + /**************************************************************************** * POP3 unique setup ***************************************************************************/ @@ -50,6 +52,17 @@ typedef enum { POP3_LAST /* never used */ } pop3state; +/* This POP3 struct is used in the SessionHandle. All POP3 data that is + connection-oriented must be in pop3_conn to properly deal with the fact that + perhaps the SessionHandle is changed between the times the connection is + used. */ +struct POP3 { + curl_off_t *bytecountp; + char *user; /* User name string */ + char *passwd; /* Password string */ + curl_ftptransfer transfer; +}; + /* pop3_conn is used for struct connection-oriented data in the connectdata struct */ struct pop3_conn { -- cgit v1.2.3