Svante Signell, le Fri 11 Sep 2015 19:50:21 +0200, a écrit : > Well, the Linux manpage for connect says:
The linux manpage is not supposed to be relevant. > While POSIX says: > http://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html > [EADDRNOTAVAIL] > The specified address is not available from the local machine. > [ECONNREFUSED] > The target address was not listening for connections or refused > the connection request. > > To me the best explanation is "No-one listening on the remote address." Take care that we may also be in the connection-less case, which does not have the notion of listening and connection. > and "The target address was not listening for connections or refused the > connection request." Additionally it is related to connect() by the > error name itself. In the connection-less case, connect is not meant to connect, but just to specify the default destination address only. > The Hurd patch is very simple: If you didn't mangle it by pasting it twice :) > Why not align to other OSes? "aligning" is not necessarily the right solution. But here it should be fine, yes. I have fixed both connect() and sendto(). Samuel