This topic contains a solution. Click here to go to the answer

Author Question: The client requests a connection to a server by using which of the following statements? (Read 58 times)

javeds

  • Hero Member
  • *****
  • Posts: 570

Question 1

The server listens for a connection request from a client by using which of the following statements?
◦ Socket s = serverSocket.accept()
◦ Socket s = serverSocket.getSocket()
◦ Socket s = new Socket(ServerName);
◦ Socket s = new Socket(ServerName, port);

Question 2

The client requests a connection to a server by using which of the following statements?
◦ Socket s = serverSocket.accept();
◦ Socket s = new Socket(ServerName);
◦ Socket s = serverSocket.getSocket();
◦ Socket s = new Socket(ServerName, port);


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by javeds on May 6, 2020

ErinKing

  • Sr. Member
  • ****
  • Posts: 362
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 29% of students answer this correctly




javeds

  • Member
  • Posts: 570
Reply 2 on: May 6, 2020
Great answer, keep it coming :)


jackie

  • Member
  • Posts: 324
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

If you use artificial sweeteners, such as cyclamates, your eyes may be more sensitive to light. Other factors that will make your eyes more sensitive to light include use of antibiotics, oral contraceptives, hypertension medications, diuretics, and antidiabetic medications.

Did you know?

According to the American College of Allergy, Asthma & Immunology, more than 50 million Americans have some kind of food allergy. Food allergies affect between 4 and 6% of children, and 4% of adults, according to the CDC. The most common food allergies include shellfish, peanuts, walnuts, fish, eggs, milk, and soy.

Did you know?

According to research, pregnant women tend to eat more if carrying a baby boy. Male fetuses may secrete a chemical that stimulates their mothers to step up her energy intake.

Did you know?

There are more nerve cells in one human brain than there are stars in the Milky Way.

Did you know?

About one in five American adults and teenagers have had a genital herpes infection—and most of them don't know it. People with genital herpes have at least twice the risk of becoming infected with HIV if exposed to it than those people who do not have genital herpes.

For a complete list of videos, visit our video library