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 object is a gaseous giant?
Find 3 consecutive even integers whose sum is 2
The Metropolitan Company sells its latest product at a unit price of $4. Variable costs are estimated to be 20% of the total revenue, while fixed costs amount t
2. What is the location on the surface directly above the earthquake focus called?
I really need help thank y’all
What are the main roles of the Federal Reserve?
Paula paid for lunch. The bill came to $16.20 plus a tax of $1.05. She gave the waiter a $20 bill and a quarter. How much change did she get
Least to greatest 3.72 3.729 43/8 67/20
How many times larger is 4 × 10^10 than 2 × 10^8?
You are standing at a certain distance from a building that is 20 meters tall. The angle of elevation that the top of the building makes with your feet is 45°.