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

9 decimals with three decimals places that when rounded to the nearest tenth round to 1.3
The phrase "plagues of locusts" is a metaphor for a. risky schemes. b. terrible disasters. c. foreign attacks. d. political debates.
Which is an arrangement of genes consisting of an operator, a promoter, and a repressor?
What was a major effect of the Columbian exchange? (1) economic collapse in Europe (2) introduction of new food crops to Europe (3) decrease in European populat
The theme of the poem "Richard Cory" is that A. a person's inner reality is often hidden. B. surface glitter may be fool's gold. C. Richard Cory was a victim o
Where is the hydaspes river
At the local aquarium there are 10 dolphins 8 penguins and 4 whales what is the ratio of penguins to whales
Earth’s magnetism is related to the circulation of molten material within Earth’s core.
is 0.221 between 0.2 and 0.225?
Given the balanced equation representing a reaction: 6Li +N2 --> 2Li3N Which type of chemical reaction is represented by this equation? (1) synthesis (2) dec