TCP connection established between two computers using sockets - Basic concept of Networking

Q.  Which steps occur when establishing a TCP connection between two computers using sockets?
- Published on 10 Jul 15

a. The server instantiates a ServerSocket object, denoting which port number communication is to occur on
b. The server invokes the accept() method of the ServerSocket class. This method waits until a client connects to the server on the given port
c. After the server is waiting, a client instantiates a Socket object, specifying the server name and port number to connect to
d. All of the above

ANSWER: All of the above

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)