[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: shutdown(2)'ing a bound UDP socket
Unless I have misunderstood (which is certainly possible), the question turns into: “is a shutdown(sock, SHUT_RD) local to that particular descriptor, or global to all descriptors which reference a particular host address+protocol+port number tuple?”
Which is to say, you want to declare on one descriptor that you’re never going to read from it again, but read from another descriptor at the same network address+protocol+port number tuple, i.e., that a shutdown(sock, SHUT_RD) should be local to a given specific descriptor, as opposed to global to all descriptors which reference a given IP address, protocol, port number tuple.
Why are you doing this dance of multiple descriptors? What behavior are you trying to achieve, or condition you’re trying to avoid, in your server code?
Main Index |
Thread Index |