Ethernet Units Operation Manual

210
Results Storage Area Response Codes Section 10-7
10-7 Results Storage Area Response Codes
The response codes stored in the Results Storage Area can be used to trou-
bleshoot socket service problems. Refer to 6-2 Using Socket Services with
Socket Service Request Switches or 6-3 Using Socket Services with
CMND(490) for the location of the response codes stored in the Results Stor-
age Area.
The UNIX socket service error messages corresponding to the response
codes are given in the following table. Refer to the documentation for the
devices involved when communicating between an Ethernet Unit and other
devices.
Response
code
UNIX error
message
Description Probable remedy
0003 ESRCH No such process Close the local socket and try reopening it.
0006 ENXIO No such device or address
0009 EBADF Bad file number (incorrect socket
specification)
000D EACCES Permission denied
(Broadcast address specified for
remote IP address for active TCP
open)
Check the IP address of the remote node and
try to reconnect.
000E EFAULT Bad address (copy failed between
kernel and user area)
Close the local socket and try reopening it.
0011 EEXIST File exists
0016 EINVAL Invalid argument (socket library
argument error)
0018 EMFILE Too many open files (More than 32
sockets)
0020 EPIPE Broken pipe (remote node closed
socket)
Close the local socket.
003C EPROTONO-
SUPPORT
Protocol not supported (protocol
other than UDP, TCP, or RAW speci-
fied)
Close the local socket and try reopening it.
003D EPROTOTYPE Protocol wrong type for socket
003E ENOBUFS No buffer space available There is too much load (traffic) on the Ethernet
Unit. Check your user applications.
003F EISCONN Socket is already connected (con-
nection attempted to open socket)
Close the local socket and try reopening it.
0040 ENOTCONN Socket is not connected (send
attempted to closed socket)
0041 EALREADY Operation already in progress (con-
nection attempted to existing non-
block connection)
0042 EMSGSIZE Message too long Check the length of send data.
UDP or TCP: 1 to 1,982 bytes
UDP broadcasts: 1 to 1,472 bytes