1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Bezzdna [24]
3 years ago
7

When should you close the socket python tcp server client.

Computers and Technology
1 answer:
Aleksandr-060686 [28]3 years ago
4 0
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
You might be interested in
Design and implement an application that reads an integer value representing a year from the user. The purpose of the program is
olga55 [171]

Answer :

Written in java

import java.util.Scanner;

public class Main{

   public static void main(String[] args) {

       int year;

       Scanner scanner = new Scanner(System.in);

       System.out.print("Please enter a year\n\n");

       year = scanner.nextInt();

       while (year < 1582) {

           System.out.print("\nPlease enter a different year above 1582\n");

           year = scanner.nextInt();

       }

       if (year % 4 == 0) {

           if(year % 100 ==0 && year % 400 != 0){

                   System.out.println(year + " is not a leap year\n\n");

           }else {

               System.out.println(year + " is a leap year\n");

           }

       } else {

           System.out.println(year + " is not a leap year\n\n");

       }

   }

}

4 0
3 years ago
How does the browser display the same webpage whether you enter the URL or the IP address in the address bar? what system transl
nordsb [41]
Awesome question! I love networking. When you enter a URL into your browser, your computer sends the request to your ISP or internet service provider. Your ISP has a HUGE database that coordinates the IP address to the domain name. This database is called a DNS, or Domain Name Service. So when you submit www.google.com to your ISP, they return look in the DNS and find the IP address. The ISP then returns the IP address to you. Your browser then takes the IP and connects you to the server. The server finally send the index.html file to and your browser and renders it as a web page. 

This all happens in the blink of an eye. The internet is truly amazing :D
6 0
3 years ago
Large and powerful computer capable of processing and storing large amounts of business data
Nata [24]

Answer:

True

Explanation:

but no need to be large physically ;)

the important point is the computer must have a proper specification to process a large amount of data

6 0
3 years ago
In which part of a presentation should you provide background information, ask a thoughtful question, or offer an interesting
makkiz [27]

The correct answer is A. Opening

Explanation:

In a presentation or the text, the opening is the first section that should allow the audience to understand what is the topic and focus. This is achieved through a hook that can include an interesting fact or a rhetorical question (a question that makes the audience think) because these two elements grab the attention of the audience. Additionally, after the hook, it is common to provide background information about the topic of the presentation, and finally, the speaker will state the main point or thesis statement. This occurs before the body of the presentation, which is the main section, and the closing, which is the last section. Thus, elements such as background information or an interesting fact are part of the opening.

8 0
4 years ago
8. Why is it important not to download pictures to your school or workplace network if you do not plan to use them?
Anni [7]

Answer:

not appropriate use of technology.

Explanation:

7 0
3 years ago
Other questions:
  • HELP I am in the computer lab right now and I need legit reasons why i should work on a laptop instead of a computer. I dont lik
    5·2 answers
  • A ____ is text and graphics that print at the bottom of every page.
    12·1 answer
  • what is the definition of web search(ing)? when I look it up it keeps trying to give me definitions for search engines but that'
    10·2 answers
  • A _____ is a control that tells the computer what task to perform.
    6·1 answer
  • Wi-fi works by converting data signals into which of the following?
    8·2 answers
  • Which language will report a compilation error for the following snippet of code? int i = 3; double n, j = 3.0; n = i + j; Group
    11·1 answer
  • What structure is a candle​
    13·1 answer
  • Difference between tell() and seek().​
    11·1 answer
  • Examine the weather map.
    12·2 answers
  • Question 2 if you have a slow computer, what are some possible culprits that could be causing this? select all that apply
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!