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

' article retrieval options
Global Const ARTICLE_ALL = 1
Global Const ARTICLE_BODY = 2
Global Const ARTICLE_HEAD = 3
Global Const ARTICLE_STAT = 4

' article position options
Global Const POSITION_PREV = 1
Global Const POSITION_NEXT = 2
Global Const POSITION_SET = 3

' new item options
Global Const NEW_GROUPS = 1
Global Const NEW_NEWS = 2

' actions
Global Const ACTION_NONE = 0
Global Const ACTION_CONNECT = 1
Global Const ACTION_DISCONNECT = 2
Global Const ACTION_LIST = 3
Global Const ACTION_POST = 4
Global Const ACTION_FORWARD = 5
Global Const ACTION_NEW = 6
Global Const ACTION_POSITION = 7
Global Const ACTION_RETRIEVE = 8
Global Const ACTION_HELP = 9
Global Const ACTION_SLAVE = 10
Global Const ACTION_ABORT = 11

' error codes
Global Const ERR_HOST_NOT_DEFINED = 1
Global Const ERR_NOT_CONNECTED = 2
Global Const ERR_IN_ACTION = 3
Global Const ERR_CANNOT_CONNECT = 4
Global Const ERR_NEW_TYPE_NOT_DEFINED = 5
Global Const ERR_INVALID_ARTICLE_ID = 6
Global Const ERR_POSITION_NOT_DEFINED = 7
Global Const ERR_ACCESS_TYPE_NOT_DEFINED = 8
Global Const ERR_GROUP_NOT_DEFINED = 9
Global Const ERR_INVALID_GROUP = 10
Global Const ERR_CANNOT_ABORT = 11

' return values
Global Const NNTP_SUCCESS = 1001
Global Const NNTP_FAILURE = 1002
Global Const NNTP_CANNOT_INITIALIZE = 1003
Global Const NNTP_CANNOT_INIT_WINSOCK = 1004
Global Const NNTP_OUT_OF_MEMORY = 1005
Global Const NNTP_UNKNOWN_HOST = 1006
Global Const NNTP_CANNOT_ALLOC_SOCKET = 1007
Global Const NNTP_CANNOT_BIND_SOCKET = 1008
Global Const NNTP_HOST_NOT_RESPONDING = 1009
Global Const NNTP_CANNOT_SEND_COMMAND = 1010
Global Const NNTP_TIMED_OUT = 1011
Global Const NNTP_INVALID_HANDLE = 1012
Global Const NNTP_INVALID_OPTION = 1013
