The errno for "Socket is not connected". Several operations will return this error if the socket has not connected. Most notable are that shutdown (disconnect) and getpeername calls can't work on an unconnected socket. For datagram-type sockets, a connect call only serves to bind a default destination address to the socket; for these sockets, a send- or recv-class system call will fail with this error if there has been no address specified.

Log in or register to write something here or to contact authors.