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

I half 49 kromozone. Pls help with math?
X and Y are two mutually exclusive events. P(X)= 0.55 and P(X or Y)=0.7. Work out P(not Y) (2 marks)
The sum of three numbers is 99. The first number is 9 more than the third. The second number is 4 times the third. What are the numbers?
if you forget to bring the book back to the library, you will pay a fine. is this a negation, conjunction, disjuntion, conditional or biconditional?
How many ounces of gold are in anan 18​-karat gold chain that weighs 2.7 ​ounces?
If 23 people shake each others hands once how many hands are shook in all
Complete the factoring 7y+42=7()
What is the difference between Spring Water and Alkaline water ?
Why do you think the british colonies became larger and more successful than the french?
what political economic and social systems best related to the "american dream"