APPLICATION LAYER
SOCKET INTERFACE PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
When a SERVER uses UDP, what must the programmer ensure is explicitly identified?
|
Client IP address
|
|
Client port number
|
|
Both
|
|
None of these
|
Explanation:
Detailed explanation-1: -The application code at the server determines client IP address and port # from the initial segment sent by client, and must explicitly specify these values when sending into a socket back to that client.
Detailed explanation-2: -Create a socket with the socket() function; Bind the socket to an address using the bind() function; Send and receive data by means of recvfrom() and sendto().
There is 1 question to complete.