COMPUTER NETWORKING

APPLICATION LAYER

SOCKET INTERFACE PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Multi-thread socket programming allows for
A
Servers to connect with multiple clients
B
Clients to connect to multiple servers simultaneously
C
Both of these
D
Neither of th
Explanation: 

Detailed explanation-1: -A socket that has been established as a server can accept connection requests from multiple clients. The server’s original socket does not become part of the connection; instead, accept makes a new socket which participates in the connection.

Detailed explanation-2: -You can use multithreading to manage multiple clients at one time, so the server can listen “at the same time” new connections while waiting for each client messages to be received.

Detailed explanation-3: -What is the maximum number of concurrent TCP connections that a server can handle, in theory ? A single listening port can accept more than one connection simultaneously. There is a ‘64K’ limit that is often cited, but that is per client per server port, and needs clarifying.

There is 1 question to complete.