Redhat 7.1 says

       The file descriptor sockfd must refer to a socket.  If the
       socket is of type SOCK_DGRAM then the serv_addr address is
       the address to which datagrams are sent  by  default,  and
       the  only  address  from which datagrams are received.  If

Looks like the test is obsolete. Any objections to remove it? Do people agree that it's a bugfix that can go into 7.4?


Jan


Tom Lane wrote:

Kurt Roeckx <[EMAIL PROTECTED]> writes:
Then it connects to itself.  I don't get the logic behind that
howver.

At least on HPUX, the connect(2) man page saith


     If the socket is of type SOCK_DGRAM, connect() specifies the peer
     address to which messages are to be sent, and the call returns
     immediately.  Furthermore, this socket can only receive messages sent
     from this address.

The "furthermore" is what we are after.

regards, tom lane

-- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== [EMAIL PROTECTED] #


---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend

Reply via email to