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

which element has an atom in the ground state with a total of three valence electrons
The sides of a triangle have lengths s, s + 4, and 3s. Which expression represents the perimeter of the triangle?
9 is 60% of what number?
24/5 in simplest form please help me.
How many stressed syllables in the word enemy?
The __________ gave women the right to vote.
The Wade-Davis Bill passed by Congress, then vetoed by Lincoln, stipulated that _______ percent of voters in a Confederate state must take an oath of future loy
-3+4(2X-5)=2(3X-1)+2X
Marta uses 1 piece of paper and 1 piece of ribbon to make kites. The paper comes in packs of 3 and the ribbon comes in packs of 4. What is the least number of
The Triple Alliance was a loose agreement of cooperation among? a)Serbia, Germany, and Britian b) Italy, Serbia, and France c) Germany, Italy, and Russia d) Ger