aboutsummaryrefslogtreecommitdiff
path: root/lib/pop3.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-02-23 16:06:54 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-02-23 16:06:54 +0000
commite2201dc849e7d5ba3104021559630030f6a8eec0 (patch)
tree46ef86fbb28072dc75fd5f36bdacfba6080da986 /lib/pop3.h
parent4cfc7f951c7cbd596849a1b942bc676132f97e15 (diff)
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*.
Diffstat (limited to 'lib/pop3.h')
-rw-r--r--lib/pop3.h13
1 files changed, 13 insertions, 0 deletions
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 {