Attribute VB_Name = "dsSocketConstants" Option Explicit ' global constants for use with dsSocket OCX ' ' Copyright ©Dolphin Systems Inc., 2001 ' ' State property values Global Const SOCK_STATE_CLOSED = 1 Global Const SOCK_STATE_CONNECTED = 2 Global Const SOCK_STATE_LISTENING = 3 Global Const SOCK_STATE_CONNECTING = 4 Global Const SOCK_STATE_ERROR = 5 Global Const SOCK_STATE_CLOSING = 6 Global Const SOCK_STATE_UNKNOWN = 7 Global Const SOCK_STATE_BUSY = 8 Global Const SOCK_STATE_UDPACTIVATING = 9 Global Const SOCK_STATE_UDPACTIVE = 10 ' Action property values Global Const SOCK_ACTION_CLOSE = 1 'Close an existing connection Global Const SOCK_ACTION_CONNECT = 2 'Establish a connection Global Const SOCK_ACTION_LISTEN = 3 'Listen for incoming connection Global Const SOCK_ACTION_FWDLOOKUP = 6 'Resolve a hostname to an IP address Global Const SOCK_ACTION_REVLOOKUP = 7 'Resolve an IP address to a hostname ' error codes Global Const SOCK_ERR_CLOSED = 20000 'Connection closed Global Const SOCK_ERR_MEMORY = 20001 'Memory allocation error Global Const SOCK_ERR_ISCLOSED = 20002 'Socket is already closed Global Const SOCK_ERR_ISLISTEN = 20003 'Socket is aready listening Global Const SOCK_ERR_NOPORT = 20004 'No port number or service name specified Global Const SOCK_ERR_ISCONNECT = 20005 'Socket is already connected Global Const SOCK_ERR_ISACTIVE = 20006 'UDP Socket is already active Global Const SOCK_ERR_WINSOCKDLL = 20010 'Winsock DLL not found Global Const SOCK_ERR_NOTCLOSED = 20011 'Socket is not closed Global Const SOCK_ERR_INTR = 21004 'Interrupted system call Global Const SOCK_ERR_BADF = 21009 'Bad file number Global Const SOCK_ERR_ACCES = 21013 'Permission denied Global Const SOCK_ERR_FAULT = 21014 'Bad address Global Const SOCK_ERR_INVAL = 21022 'Invalid argument Global Const SOCK_ERR_MFILE = 21024 'Too many open files Global Const SOCK_ERR_WOULDBLOCK = 21035 'Operation would block Global Const SOCK_ERR_INPROGRESS = 21036 'Operation now in progress Global Const SOCK_ERR_ALREADY = 21037 'Operation already in progress Global Const SOCK_ERR_NOTSOCK = 21038 'Socket operation on non-socket Global Const SOCK_ERR_DESTADDRREQ = 21039 'Destination address required Global Const SOCK_ERR_MSGSIZE = 21040 'Message too long Global Const SOCK_ERR_PROTOTYPE = 21041 'Protocol wrong type for socket Global Const SOCK_ERR_NOPROTOOPT = 21042 'Bad protocol option Global Const SOCK_ERR_PROTONOSUPPORT = 21043 'Protocol not supported Global Const SOCK_ERR_SOCKTNOSUPPORT = 21044 'Socket type not supported Global Const SOCK_ERR_OPNOTSUPP = 21045 'Operation not supported on socket Global Const SOCK_ERR_PFNOSUPPORT = 21046 'Protocol family not supported Global Const SOCK_ERR_AFNOSUPPORT = 21047 'Address family not supported by protocol family Global Const SOCK_ERR_ADDRINUSE = 21048 'Address already in use Global Const SOCK_ERR_ADDRNOTAVAIL = 21049 'Can't assign requested address Global Const SOCK_ERR_NETDOWN = 21050 'Network is down Global Const SOCK_ERR_NETUNREACH = 21051 'Network is unreachable Global Const SOCK_ERR_NETRESET = 21052 'Net dropped connection or reset Global Const SOCK_ERR_CONNABORTED = 21053 'Software caused connection abort Global Const SOCK_ERR_CONNRESET = 21054 'Connection reset by peer Global Const SOCK_ERR_NOBUFS = 21055 'No buffer space available Global Const SOCK_ERR_ISCONN = 21056 'Socket is already connected Global Const SOCK_ERR_NOTCONN = 21057 'Socket is not connected Global Const SOCK_ERR_SHUTDOWN = 21058 'Can't send after socket shutdown Global Const SOCK_ERR_TOOMANYREFS = 21059 'Too many references, can't splice Global Const SOCK_ERR_TIMEDOUT = 21060 'Connection timed out Global Const SOCK_ERR_CONNREFUSED = 21061 'Connection refused Global Const SOCK_ERR_LOOP = 21062 'Too many levels of symbolic links Global Const SOCK_ERR_NAMETOOLONG = 21063 'File name too long Global Const SOCK_ERR_HOSTDOWN = 21064 'Host is down Global Const SOCK_ERR_HOSTUNREACH = 21065 'No Route to Host Global Const SOCK_ERR_NOTEMPTY = 21066 'Directory not empty Global Const SOCK_ERR_PROCLIM = 21067 'Too many processes Global Const SOCK_ERR_USERS = 21068 'Too many users Global Const SOCK_ERR_DQUOT = 21069 'Disc Quota Exceeded Global Const SOCK_ERR_STALE = 21070 'Stale NFS file handle Global Const SOCK_ERR_REMOTE = 21071 'Too many levels of remote in path Global Const SOCK_ERR_SYSNOTREADY = 21091 'Network SubSystem is unavailable Global Const SOCK_ERR_VERNOTSUPPORTED = 21092 'WINSOCK DLL Version out of range Global Const SOCK_ERR_NOTINITIALISED = 21093 'Successful WSASTARTUP not yet performed Global Const SOCK_ERR_HOST_NOT_FOUND = 22001 'Host not found Global Const SOCK_ERR_TRY_AGAIN = 22002 'Non-Authoritative Host not found Global Const SOCK_ERR_NO_RECOVERY = 22003 'Non-Recoverable errors: FORMERR, REFUSED, NOTIMP Global Const SOCK_ERR_NO_DATA = 22004 'Valid name, no data record of requested type