annonomus2748 annonomus2748
  • 01-12-2021
  • Computers and Technology
contestada

When should you close the socket python tcp server client.

Respuesta :

Talanat
Talanat Talanat
  • 01-12-2021
f socket refers to an open TCP connection, the connection is closed. If a stream socket is closed when there is input data queued, the TCP connection is reset rather than being cleanly closed. The descriptor of the socket to be closed

To close the socket you need to call shutdown() first and then close(), and shutdown takes an argument
Answer Link

Otras preguntas

How did the launch of Sputnik lead to the creation of NASA? (2 points) The U.S. space agency acquired secret technology from Soviet defectors. Desire to attra
Why might some people feel that the United States should not be imperialistic?
What does the color of Max's urine tell Tracey about how concentrated or dilute it is? How does Max's urine color/concentration compare to the urine specific gr
cos(2theta)=11 sin(theta)-5
The formula for electrical power (P, in watts) is where V is the voltage in volts and R is the resistance in ohms. For a particular brand of water heater, R is
DNA is best described as a double helical molecule consisting of a sequence of
4.7+m=1.8. Solve for m
Which detail from "The Monkey's Paw" most clearly helps create tension? A. The White family sits waiting after Mr. White makes his first wish. B. Mr. Whit
which action represents a president fulfilling the basic outline of executive power as described in the constitution?
what river played a key role in the early wars of America