COMPUTER NETWORKING

APPLICATION LAYER

SOCKET INTERFACE PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Client Socket does
A
initiates the communication
B
must know the address and the port of the server
C
It is an active socket
D
All of the Above
Explanation: 

Detailed explanation-1: -A Socket is the fundamental class for interacting with the server. It inherits most of the methods of the Node.js EventEmitter, like emit, on, once or off.

Detailed explanation-2: -Irrespective of stateful or stateless protocols, two clients can connect to the same server port because for each client we can assign a different socket (as the client IP will definitely differ). The same client can also have two sockets connecting to the same server port-since such sockets differ by SRC-PORT .

There is 1 question to complete.