' POP Custom Control
' (C) Copyright 1994 by Distinct Corporation
' All rights reserved

' pop server type
Global Const TYPE_POP2 = 2
Global Const TYPE_POP3 = 3

' line control 
Global Const ALL_LINES = -1

' actions
Global Const ACTION_NONE = 0
Global Const ACTION_CONNECT = 1
Global Const ACTION_DISCONNECT = 2
Global Const ACTION_LIST = 3
Global Const ACTION_DELETE = 4
Global Const ACTION_RETREIVE_SAVE = 5
Global Const ACTION_RETREIVE_DELETE = 6
Global Const ACTION_STATISTICS = 7
Global Const ACTION_NOOP = 8
Global Const ACTION_RESET = 9
Global Const ACTION_ABORT = 10

' error codes
Global Const ERR_CHANGE_POP_TYPE = 1
Global Const ERR_TYPE_NOT_DEFINED = 2
Global Const ERR_HOST_NOT_DEFINED = 3
Global Const ERR_USER_NOT_DEFINED = 4
Global Const ERR_NOT_CONNECTED = 5
Global Const ERR_IN_ACTION = 6
Global Const ERR_CANNOT_CONNECT = 7
Global Const ERR_MSGNO_NOT_DEFINED = 8
Global Const ERR_CANNOT_ABORT = 9

' return values 
Global Const POP_SUCCESS = 1001
Global Const POP_FAILURE = 1002
Global Const POP_CANNOT_INITIALIZE = 1003
Global Const POP_CANNOT_INIT_WINSOCK = 1004
Global Const POP_OUT_OF_MEMORY = 1005
Global Const POP_UNKNOWN_HOST = 1006
Global Const POP_CANNOT_ALLOC_SOCKET = 1007
Global Const POP_CANNOT_BIND_SOCKET = 1008
Global Const POP_HOST_NOT_RESPONDING = 1009
Global Const POP_CANNOT_SEND_COMMAND = 1010
Global Const POP_TIMED_OUT = 1011
Global Const POP_INVALID_MESSAGE = 1012
Global Const POP_INVALID_HANDLE = 1013
Global Const POP_INVALID_OPTION = 1014
