Comtrol eCos User Manual

Page 573

Advertising
background image

Chapter 38. TCP/IP Library Reference

and the size of the message to be sent made this

impossible.

[EAGAIN]

The socket is marked non-blocking and the requested

operation would block.

[ENOBUFS]

The system was unable to allocate an internal buffer.

The operation may succeed when buffers become avail-

able.

[ENOBUFS]

The output queue for a network interface was full.

This generally indicates that the interface has

stopped sending, but may be caused by transient con-

gestion.

[EACCES]

The SO_BROADCAST option is not set on the socket, and

a broadcast address was given as the destination.

[EHOSTUNREACH]

The destination address specified an unreachable host.

[EINVAL]

The flags parameter is invalid.

[EHOSTDOWN]

The destination address specified a host that is down.

[ENETDOWN]

The destination address specified a network that is

down.

[ECONNREFUSED]

The destination host rejected the message (or a previ-

ous one).

This error can only be returned by con-

nected sockets.

[ENOPROTOOPT]

There was a problem sending the message.

This error

can only be returned by connected sockets.

[EDESTADDRREQ]

The socket is not connected, and no destination

address was specified.

[EISCONN]

The socket is already connected, and a destination

address was specified.

In addition, send() and sendto() may return the following error:

[EINVAL]

len was larger than SSIZE_MAX.

Also, sendmsg() may return the following errors:

[EINVAL]

The sum of the iov_len values in the msg_iov array

overflowed an ssize_t.

[EMSGSIZE]

The msg_iovlen member of msg was less than 0 or larger

than IOV_MAX.

[EAFNOSUPPORT]

Addresses in the specified address family cannot be

used with this socket.

469

Advertising