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

Find the volume of a prism-shaped watermelon in cubic inches if it's length is 10 inches, its width is 2/3 foot and it's height is 9 inches
why did the ottoman ruler in egypt lose control of the Suez Canal?
Why do animals and humans need proteins in their diets?
plz help me I really need it
The recipe for punch calls for 6 cups of Sprite for every 8 cups of Cherry Limeade. In lowest terms, what is the ratio of Cherry Limeade to Sprite in this punch
Garret is in the middle of a 20-minute bike ride. It takes 4 minutes for him to go a kilometer, so he'll end up going 5 kilometers. Suppose k is the number of k
the play begins with several members of the capulet and montague houses quarreling in the street. can we tell why they want to fight ? romeo & julieta book
What happens to each company’s net income if sales increase by 30%?
Where does a grassroots movement begin?
If the required reserve ratio is 20 percent and commercial bankers decide to hold additional excess reserves equal to 5 percent of any newly acquired checkable