Possible error codes for socket services – Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual
Page 155
Publication ENET-UM527E-EN-P - October 2006
Socket Interface 155
A typical use of DeleteAllSockets is when application development
and debugging is complete. Use DeleteAllSockets as the first
operation when the program first begins to operate.
Possible Error Codes for
Socket Services
If the Socket Object encounters an error with a service request, or
while processing the service request:
• The Socket Object returns an error code.
• The MSG instruction sets the .ER bit.
• The MSG instruction sets error codes in the .ERR and .EXTERR
fields.
CIP error status codes are:
Error Code
Mnemonic
Description
Decimal
Hexadecimal
22
16
EINVAL
Invalid argument
32
20
EPIPE
Broken pipe
40
28
EDESTADDRREQ
Destination address required
41
29
EPROTOTYPE
Protocol wrong type for socket
42
2A
ENOPROTOOPT
Protocol not available
43
2B
EPROTONOSUPPORT
Protocol not supported
44
2C
ESOCKTNOSUPPORT
Socket type not supported
45
2D
EOPNOTSUPP
Operation not supported on socket
46
2E
EPFNOSUPPORT
Protocol family not supported
47
2F
EAFNOSUPPORT
Addr family not supported
48
30
EADDRINUSE
Address already in use
49
31
EADDRNOTAVAIL
Can't assign requested address
50
32
ENOTSOCK
Socket operation on non-socket
51
33
ENETUNREACH
Network is unreachable
52
34
ENETRESET
Network dropped connection on reset
53
35
ECONNABORTED
Software caused connection abort
54
36
ECONNRESET
Connection reset by peer
55
37
ENOBUFS
No buffer space available
56
38
EISCONN
Socket is already connected
57
39
ENOTCONN
Socket is not connected
58
3A
ESHUTDOWN
Can't send after socket shutdown
59
3B
ETOOMANYREFS
Too many references: can't splice
60
3C
ETIMEDOUT
Connection timed out
61
3D
ECONNREFUSED
Connection refused
62
3E
ENETDOWN
Network is down