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

Reread this quote from George Washington, and then answer the question. What is the main reason Washington thinks the game is “pretty near up”?
16% of what number is 14?
¿Cual es la utilidad de ubicar puntos en un plano cartesiano?
In 1900 the majority of russia population belonged to the
9] x2 - 6 = 19 solve the equation using square root method
To check the work on a _____ problem, simply add the number to the subtracted number.
bacteria culture starts with 400 bacteria and grows at a rate proportional to its size. After 4 hours, there are 9000 bacteria. A. Find an expression for the nu
prove that sec^4 (x)=1+2 tan^2 (x)+tan^4 (x)
I need help with this problem fast
What are the coordinates of a point on a graph of the function g, if -2 = g(8)?