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

is the planet Uranus surface rocky or flat?
When a sample of a gas is heated in a sealed, rigid container from 200. K to 400. K, the pressure exerted by the gas is (1) decreased by a factor of 2. (2) incr
What is the name of the President of the United States now?
Under our Constitution, some powers belong to the states. What is one power of the states?
The coefficients in a balanced chemical equation represent (l ) the mass ratios of the substances in the reaction (2) the mole ratios of the substances in the r
The House of Representatives has how many voting members?
Which atom has the largest atomic radius? (1) potassium (3) francium (2) rubidium (4) cesium
examples of elastic and inelastic goods... ( at least 20 examples) URGENT..............
What are the two major political parties in the United States?
Which compound is an electrolyte? (I) CH3CHO (3) CH3COOH (2) CH3OCH3 (4) CH3CH2CH3