With connect(int socket, const struct sockaddr *address, socklen_t address_len);
, according to man 2 connect
:
The parameter socket is a socket. If it is of type SOCK_DGRAM, this call specifies the peer with which the socket is to be associated; this address is that to which datagrams are to be sent, and the only address from which datagrams are to be received.
Does that mean a local port could still be used to connect to several remote peers over UDP? Or is it that one local port could only be used to connect to one peer?
Thanks