home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 5 / hacker05 / 05_HACK_05.ISO / sockets / activsocket / asocket.exe / data1.cab / Example_Files / Asp / ASocket.inc next >
Encoding:
Text File  |  2002-06-21  |  11.1 KB  |  121 lines

  1.  
  2. <%
  3.  
  4.  
  5. ' Connection states
  6.  
  7. Const asPROTOCOL_RAW              = 1   
  8. Const asPROTOCOL_TELNET                    = 2 
  9.  
  10.  
  11. ' Connection states
  12.  
  13. Const asCONN_DISCONNECTED          = 1   
  14. Const asCONN_LISTENING                  = 2 
  15. Const asCONN_CONNECTED                  = 3
  16.  
  17.  
  18. ' Error codes 
  19.  
  20. Const asERR_WSASUCCESS              = 0   ' Success
  21. Const asERR_WSAINVALIDPARAMETER              = 1   ' Invalid parameter
  22. Const asERR_WSACREATETHREADFAILED      = 2   ' Unable to create thread
  23. Const asERR_WSAEVALUATIONEXPIRED      = 3   ' Evaluation period has expired
  24. Const asERR_WSAINVALIDLICENSE              = 4   ' License was entered, but invalid
  25.  
  26. Const asERR_WSAEINTR                  = 10004   ' A blocking operation was interrupted by a call to WSACancelBlockingCall. 
  27. Const asERR_WSAEBADF                  = 10009   ' The file handle supplied is not valid.
  28. Const asERR_WSAEACCES                 = 10013   ' An attempt was made to access a socket in a way forbidden by its access permissions. 
  29. Const asERR_WSAEFAULT                 = 10014   ' The system detected an invalid pointer address in attempting to use a pointer argument in a call.   
  30. Const asERR_WSAEINVAL                 = 10022   ' An invalid argument was supplied. 
  31. Const asERR_WSAEMFILE                 = 10024   ' Too many open sockets.
  32. Const asERR_WSAEWOULDBLOCK            = 10035   ' A non-blocking socket operation could not be completed immediately.   
  33. Const asERR_WSAEINPROGRESS            = 10036   ' A blocking operation is currently executing.  
  34. Const asERR_WSAEALREADY               = 10037   ' An operation was attempted on a non-blocking socket that already had an operation in progress. 
  35. Const asERR_WSAENOTSOCK               = 10038   ' An operation was attempted on something that is not a socket.   
  36. Const asERR_WSAEDESTADDRREQ           = 10039   ' A required address was omitted from an operation on a socket.
  37. Const asERR_WSAEMSGSIZE               = 10040   ' A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself. 
  38. Const asERR_WSAEPROTOTYPE             = 10041   ' A protocol was specified in the socket function call that does not support the semantics of the socket type requested. 
  39. Const asERR_WSAENOPROTOOPT            = 10042   ' An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call. 
  40. Const asERR_WSAEPROTONOSUPPORT        = 10043   ' The requested protocol has not been configured into the system, or no implementation for it exists.
  41. Const asERR_WSAESOCKTNOSUPPORT        = 10044   ' The support for the specified socket type does not exist in this address family.  
  42. Const asERR_WSAEOPNOTSUPP             = 10045   ' The attempted operation is not supported for the type of object referenced.
  43. Const asERR_WSAEPFNOSUPPORT           = 10046   ' The protocol family has not been configured into the system or no implementation for it exists.
  44. Const asERR_WSAEAFNOSUPPORT           = 10047   ' An address incompatible with the requested protocol was used.
  45. Const asERR_WSAEADDRINUSE             = 10048   ' Only one usage of each socket address (protocol/network address/port) is normally permitted.
  46. Const asERR_WSAEADDRNOTAVAIL          = 10049   ' The requested address is not valid in its context.
  47. Const asERR_WSAENETDOWN               = 10050   ' A socket operation encountered a dead network.
  48. Const asERR_WSAENETUNREACH            = 10051   ' A socket operation was attempted to an unreachable network.
  49. Const asERR_WSAENETRESET              = 10052   ' The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress.
  50. Const asERR_WSAECONNABORTED           = 10053   ' An established connection was aborted by the software in your host machine.
  51. Const asERR_WSAECONNRESET             = 10054   ' An existing connection was forcibly closed by the remote host.
  52. Const asERR_WSAENOBUFS                = 10055   ' An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
  53. Const asERR_WSAEISCONN                = 10056   ' A connect request was made on an already connected socket.
  54. Const asERR_WSAENOTCONN               = 10057   ' A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
  55. Const asERR_WSAESHUTDOWN              = 10058   ' A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call.
  56. Const asERR_WSAETOOMANYREFS           = 10059   ' Too many references to some kernel object.
  57. Const asERR_WSAETIMEDOUT              = 10060   ' A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
  58. Const asERR_WSAECONNREFUSED           = 10061   ' No connection could be made because the target machine actively refused it.
  59. Const asERR_WSAELOOP                  = 10062   ' Cannot translate name.
  60. Const asERR_WSAENAMETOOLONG           = 10063   ' Name component or name was too long.
  61. Const asERR_WSAEHOSTDOWN              = 10064   ' A socket operation failed because the destination host was down.
  62. Const asERR_WSAEHOSTUNREACH           = 10065   ' A socket operation was attempted to an unreachable host.
  63. Const asERR_WSAENOTEMPTY              = 10066   ' Cannot remove a directory that is not empty.
  64. Const asERR_WSAEPROCLIM               = 10067   ' A Windows Sockets implementation may have a limit on the number of applications that may use it simultaneously.
  65. Const asERR_WSAEUSERS                 = 10068   ' Ran out of quota.
  66. Const asERR_WSAEDQUOT                 = 10069   ' Ran out of disk quota.
  67. Const asERR_WSAESTALE                 = 10070   ' File handle reference is no longer available.
  68. Const asERR_WSAEREMOTE                = 10071   ' Item is not available locally.
  69. Const asERR_WSASYSNOTREADY            = 10091   ' WSAStartup cannot function at this time because the underlying system it uses to provide network services is currently unavailable.
  70. Const asERR_WSAVERNOTSUPPORTED        = 10092   ' The Windows Sockets version requested is not supported.
  71. Const asERR_WSANOTINITIALISED         = 10093   ' Either the application has not called asERR_WSAStartup, or WSAStartup failed.
  72. Const asERR_WSAEDISCON                = 10101   ' Returned by WSARecv or WSARecvFrom to indicate the remote party has initiated a graceful shutdown sequence.
  73. Const asERR_WSAENOMORE                = 10102   ' No more results can be returned by WSALookupServiceNext.
  74. Const asERR_WSAECANCELLED             = 10103   ' A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled.
  75. Const asERR_WSAEINVALIDPROCTABLE      = 10104   ' The procedure call table is invalid.
  76. Const asERR_WSAEINVALIDPROVIDER       = 10105   ' The requested service provider is invalid.
  77. Const asERR_WSAEPROVIDERFAILEDINIT    = 10106   ' The requested service provider could not be loaded or initialized.  
  78. Const asERR_WSASYSCALLFAILURE         = 10107   ' A system call that should never fail has failed.
  79. Const asERR_WSASERVICE_NOT_FOUND      = 10108   ' No such service is known. The service cannot be found in the specified name space.
  80. Const asERR_WSATYPE_NOT_FOUND         = 10109   ' The specified class was not found.
  81. Const asERR_WSA_E_NO_MORE             = 10110   ' No more results can be returned by WSALookupServiceNext.
  82. Const asERR_WSA_E_CANCELLED           = 10111   ' A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled.
  83. Const asERR_WSAEREFUSED               = 10112   ' A database query failed because it was actively refused.
  84. Const asERR_WSAHOST_NOT_FOUND         = 11001   ' No such host is known.
  85. Const asERR_WSATRY_AGAIN              = 11002   ' This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
  86. Const asERR_WSANO_RECOVERY            = 11003   ' A non-recoverable error occurred during a database lookup.
  87. Const asERR_WSANO_DATA                = 11004   ' The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. 
  88. Const asERR_WSA_QOS_RECEIVERS         = 11005   ' At least one reserve has arrived. 
  89. Const asERR_WSA_QOS_SENDERS           = 11006   ' At least one path has arrived.
  90. Const asERR_WSA_QOS_NO_SENDERS        = 11007   ' There are no senders. 
  91. Const asERR_WSA_QOS_NO_RECEIVERS      = 11008   ' There are no receivers.
  92. Const asERR_WSA_QOS_REQUEST_CONFIRMED = 11009   ' Reserve has been confirmed.
  93. Const asERR_WSA_QOS_ADMISSION_FAILURE = 11010   ' Error due to lack of resources.
  94. Const asERR_WSA_QOS_POLICY_FAILURE    = 11011   ' Rejected for administrative reasons - bad credentials.
  95. Const asERR_WSA_QOS_BAD_STYLE         = 11012   ' Unknown or conflicting style.
  96. Const asERR_WSA_QOS_BAD_OBJECT        = 11013   ' Problem with some part of the filterspec or providerspecific buffer in general.
  97. Const asERR_WSA_QOS_TRAFFIC_CTRL_ERROR= 11014   ' Problem with some part of the flowspec.
  98. Const asERR_WSA_QOS_GENERIC_ERROR     = 11015   ' General QOS error.
  99. Const asERR_WSA_QOS_ESERVICETYPE      = 11016   ' An invalid or unrecognized service type was found in the flowspec.
  100. Const asERR_WSA_QOS_EFLOWSPEC         = 11017   ' An invalid or inconsistent flowspec was found in the QOS structure.
  101. Const asERR_WSA_QOS_EPROVSPECBUF      = 11018   ' Invalid QOS provider-specific buffer. 
  102. Const asERR_WSA_QOS_EFILTERSTYLE      = 11019   ' An invalid QOS filter style was used.
  103. Const asERR_WSA_QOS_EFILTERTYPE       = 11020   ' An invalid QOS filter type was used.
  104. Const asERR_WSA_QOS_EFILTERCOUNT      = 11021   ' An incorrect number of QOS FILTERSPECs were specified in the FLOWDESCRIPTOR.
  105. Const asERR_WSA_QOS_EOBJLENGTH        = 11022   ' An object with an invalid ObjectLength field was specified in the QOS provider-specific buffer.
  106. Const asERR_WSA_QOS_EFLOWCOUNT        = 11023   ' An incorrect number of flow descriptors was specified in the QOS structure.
  107. Const asERR_WSA_QOS_EUNKNOWNPSOBJ     = 11024   ' An unrecognized object was found in the QOS provider-specific buffer.
  108. Const asERR_WSA_QOS_EPOLICYOBJ        = 11025   ' An invalid policy object was found in the QOS provider-specific buffer.
  109. Const asERR_WSA_QOS_EFLOWDESC         = 11026   ' An invalid QOS flow descriptor was found in the flow descriptor list.
  110. Const asERR_WSA_QOS_EPSFLOWSPEC       = 11027   ' An invalid or inconsistent flowspec was found in the QOS provider-specific buffer.
  111. Const asERR_WSA_QOS_EPSFILTERSPEC     = 11028   ' An invalid FILTERSPEC was found in the QOS provider-specific buffer.
  112. Const asERR_WSA_QOS_ESDMODEOBJ        = 11029   ' An invalid shape discard mode object was found in the QOS provider-specific buffer.
  113. Const asERR_WSA_QOS_ESHAPERATEOBJ     = 11030   ' An invalid shaping rate object was found in the QOS provider-specific buffer.
  114. Const asERR_WSA_QOS_RESERVED_PETYPE   = 11031   ' A reserved policy element was found in the QOS provider-specific buffer. 
  115.  
  116.  
  117.  
  118.  
  119. %>
  120.  
  121.