AMX DESIGN XPRESS V 1.5 - PROGRAMMER GUIDE User's Guide Page 212

  • Download
  • Add to my manuals
  • Print
  • Page
    / 316
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 211
198
K
A
DAK
KwikNet TCP/IP Sockets
Returns ...continued
The error indicator for socket
s is set to define the reason for failure. Use
kn_errno() to retrieve the error code.
EBADF The socket descriptor s is invalid.
EINVAL The socket is already bound to an address or
parameter destaddr or addrlen is invalid.
EADDRNOTAVAIL The specified address is not available from the
local machine or a broadcast address is not allowed
as a destination for this socket.
EADDRINUSE The specified address is already in use.
EAFNOSUPPORT Addresses in the address family specified by
*destaddr cannot be used with this socket.
ETIMEDOUT Timed out before connection could be established.
(see note below)
ECONNREFUSED The attempt to connect was forcefully rejected.
(see note below)
EHOSTUNREACH There is no route available to reach the destination
address specified. (see note below)
EINPROGRESS The socket is non-blocking and the connection has
not yet been established.
EALREADY The socket is non-blocking and a previous connection
attempt is in progress but is not yet complete.
EPERM The socket descriptor s is a listening socket. Do not
call kn_connect() after calling kn_listen().
ENOBUFS Memory needed to service the request is unavailable.
** note ** You should close the socket identified by descriptor s
to ensure that the connection attempt is aborted.
Then, if necessary, call kn_socket() to obtain a new
socket descriptor and attempt the connection again.
See Also kn_bind(), kn_getsockname(), kn_select(), kn_socket()
Page view 211
1 ... 211 212 213 ... 316

Comments to this Manuals

No comments