Gate2017 ss Q19

0. Consider socket API on a Linux machine that supports connected UDP sockets. A connected UDP socket is a UDP socket on which connect function has already been called. Which of the following statements is/are CORRECT?
I. A connected UDP socket can be used to communicate with multiple peers simultaneously.
II. A process can successfully call connect function again for an already connected UDP socket.

  • Option : B
  • Explanation :
    A process with a connected UDP socket can call connect again for that socket for one of two reasons:
    (1) To specify a new IP address and port.
    (2) To unconnect the socket.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *