E_WinsockError
TYPE E_WinsockError :
(
WSOK,
WSAEINTR := 10004 ,(* A blocking operation was interrupted by a call to WSACancelBlockingCall. *)
WSAEBADF := 10009 ,(* The file handle supplied is not valid. *)
WSAEACCES := 10013 ,(* An attempt was made to access a socket in a way forbidden by its access permissions. *)
WSAEFAULT := 10014 ,(* The system detected an invalid pointer address in attempting to use a pointer argument in a call. *)
WSAEINVAL := 10022 ,(* An invalid argument was supplied. *)
WSAEMFILE := 10024 ,(* Too many open sockets. *)
WSAEWOULDBLOCK := 10035 ,(* A non-blocking socket operation could not be completed immediately. *)
WSAEINPROGRESS := 10036 ,(* A blocking operation is currently executing. *)
WSAEALREADY := 10037 ,(* An operation was attempted on a non-blocking socket that already had an operation in progress. *)
WSAENOTSOCK := 10038 ,(* An operation was attempted on something that is not a socket. *)
WSAEDESTADDRREQ := 10039 ,(* A required address was omitted from an operation on a socket. *)
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. *)
WSAEPROTOTYPE := 10041 ,(* A protocol was specified in the socket function call that does not support the semantics of the socket type requested. *)
WSAENOPROTOOPT := 10042 ,(* An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call. *)
WSAEPROTONOSUPPORT := 10043 ,(* The requested protocol has not been configured into the system, or no implementation for it exists. *)
WSAESOCKTNOSUPPORT := 10044 ,(* The support for the specified socket type does not exist in this address family. *)
WSAEOPNOTSUPP := 10045 ,(* The attempted operation is not supported for the type of object referenced. *)
WSAEPFNOSUPPORT := 10046 ,(* The protocol family has not been configured into the system or no implementation for it exists. *)
WSAEAFNOSUPPORT := 10047 ,(* An address incompatible with the requested protocol was used. *)
WSAEADDRINUSE := 10048 ,(* Only one usage of each socket address (protocol/network address/port) is normally permitted. *)
WSAEADDRNOTAVAIL := 10049 ,(* The requested address is not valid in its context. *)
WSAENETDOWN := 10050 ,(* A socket operation encountered a dead network. *)
WSAENETUNREACH := 10051 ,(* A socket operation was attempted to an unreachable network. *)
WSAENETRESET := 10052 ,(* The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress. *)
WSAECONNABORTED := 10053 ,(* An established connection was aborted by the software in your host machine. *)
WSAECONNRESET := 10054 ,(* An existing connection was forcibly closed by the remote host. *)
WSAENOBUFS := 10055 ,(* An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. *)
WSAEISCONN := 10056 ,(* A connect request was made on an already connected socket. *)
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. *)
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. *)
WSAETOOMANYREFS := 10059 ,(* Too many references to some kernel object. *)
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. *)
WSAECONNREFUSED := 10061 ,(* No connection could be made because the target machine actively refused it. *)
WSAELOOP := 10062 ,(* Cannot translate name. *)
WSAENAMETOOLONG := 10063 ,(* Name component or name was too long. *)
WSAEHOSTDOWN := 10064 ,(* A socket operation failed because the destination host was down. *)
WSAEHOSTUNREACH := 10065 ,(* A socket operation was attempted to an unreachable host. *)
WSAENOTEMPTY := 10066 ,(* Cannot remove a directory that is not empty. *)
WSAEPROCLIM := 10067 ,(* A Windows Sockets implementation may have a limit on the number of applications that may use it simultaneously. *)
WSAEUSERS := 10068 ,(* Ran out of quota. *)
WSAEDQUOT := 10069 ,(* Ran out of disk quota. *)
WSAESTALE := 10070 ,(* File handle reference is no longer available. *)
WSAEREMOTE := 10071 ,(* Item is not available locally. *)
WSASYSNOTREADY := 10091 ,(* WSAStartup cannot function at this time because the underlying system it uses to provide network services is currently unavailable. *)
WSAVERNOTSUPPORTED := 10092 ,(* The Windows Sockets version requested is not supported. *)
WSANOTINITIALISED := 10093 ,(* Either the application has not called WSAStartup, or WSAStartup failed. *)
WSAEDISCON := 10101 ,(* Returned by WSARecv or WSARecvFrom to indicate the remote party has initiated a graceful shutdown sequence. *)
WSAENOMORE := 10102 ,(* No more results can be returned by WSALookupServiceNext. *)
WSAECANCELLED := 10103 ,(* A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled. *)
WSAEINVALIDPROCTABLE := 10104 ,(* The procedure call table is invalid. *)
WSAEINVALIDPROVIDER := 10105 ,(* The requested service provider is invalid. *)
WSAEPROVIDERFAILEDINIT := 10106 ,(* The requested service provider could not be loaded or initialized. *)
WSASYSCALLFAILURE := 10107 ,(* A system call that should never fail has failed. *)
WSASERVICE_NOT_FOU ND := 10108 ,(* No such service is known. The service cannot be found in the specified name space. *)
WSATYPE_NOT_FOUND := 10109 ,(* The specified class was not found. *)
WSA_E_NO_MORE := 10110 ,(* No more results can be returned by WSALookupServiceNext. *)
WSA_E_CANCELLED := 10111 ,(* A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled. *)
WSAEREFUSED := 10112 ,(* A database query failed because it was actively refused. *)
WSAHOST_NOT_FOUND := 11001 ,(* No such host is known. *)
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. *)
WSANO_RECOVERY := 11003 ,(* A non-recoverable error occurred during a database lookup. *)
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. *)
);
END_TYPE
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
TwinCAT version 2.8.0 or higher | PC or CX (x86) | TcpIp.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically ) |
TwinCAT v2.10.0 Build >= 1301 | CX (ARM) |