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

why is red onions purple
20% of my money is £2.55 What is 2/5 of it?
Jonathan has been on a diet since January 2013. So far, he has been losing weight at a steady rate. Based on monthly weigh-ins, his weight, w, can be modeled by
Explain why the current is reduced as electrons move through a conductor.
what is the cubic root of - 250
true or false? Three common voltage sources are batteries, solar cells, and generators.
What are enzymes also known as? What do enzymes do to biological reactions? What do we call the special shape on an enzyme molecule? What are enzymes made of? W
A certain test is worth 155 points. How many points (rounded to the nearest point) are needed to obtain a score of 65%?
If x^5y^4z^2 <0 , which of the following must be true? I xy <0 II yz <0 III xz <0
what did henry hudson claim land for