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

' actions
Const ACTION_NONE = 0
Const ACTION_LISTEN = 1
Const ACTION_ACCEPT = 2
Const ACTION_DISCONNECT = 3
Const ACTION_CLOSE = 4

' address conversions
Const CONVERT_NONE = 0
Const CONVERT_ADDRESS_TO_NAME = 1
Const CONVERT_NAME_TO_ADDRESS = 2

' protocol and service conversions
' CONVERT_NONE is as defined above
Const PROTO_NAME_TO_NUMBER = 1
Const PROTO_NUMBER_TO_NAME = 2
Const SVC_NAME_TO_PORT = 3
Const SVC_PORT_TO_NAME = 4

' options
Const OPTION_NONE = 0
Const OPTION_LINGER_ON = 1
Const OPTION_LINGER_OFF = 2
Const OPTION_KEEPALIVE_ON = 3
Const OPTION_KEEPALIVE_OFF = 4

' error codes
Const ERR_IN_ACTION = 1
Const ERR_CHANGE_LOCAL_PORT = 2
Const ERR_CHANGE_RECV_SIZE = 3
Const ERR_CHANGE_SEND_SIZE = 4
Const ERR_CANNOT_GET_SOCKET = 5
Const ERR_CANNOT_BIND_SOCKET = 6
Const ERR_CANNOT_SETUP_SOCKET = 7
Const ERR_CANNOT_LISTEN_SOCKET = 8
Const ERR_NOT_LISTENING = 9
Const ERR_CANNOT_ACCEPT = 10
Const ERR_CANNOT_RECV = 11
Const ERR_CANNOT_RECV_COUNT = 12
Const ERR_CANNOT_SEND = 13
Const ERR_NO_OPTION_VALUE = 14
Const ERR_CANNOT_GET_LOCAL = 15
