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
Anettt [7]
3 years ago
8

the UDP server described needed only one socket, whereas the TCP server needed two sockets. Why? If the TCP server were to suppo

rt n simultaneous connections, each from a different client host, how many sockets would the TCP server need?
Computers and Technology
2 answers:
mixas84 [53]3 years ago
8 0

Answer:

The UDP server described needed only one socket, whereas the TCP server needed two sockets because:

  • With the UDP server, there is no welcoming socket, and all data from different clients enters the server through this one socket.
  • With the TCP server, there is a welcoming socket, and each time a client initiates a connection to the server, a new socket is created. Thus, to support n simultaneous connections, the server would need n+1 sockets.

stepan [7]3 years ago
6 0

Answer:

UDP uses one socket and TCP requires two sockets in a transmission because UDP is a way one connectionless protocol but TCP is connection oriented.

The TCP server that supports n simultaneous connections would require n sockets, ranging from 1 through n.

Explanation:

A socket is a fusion of a port number and a source IP address using a colon.

UDP is a transport layer protocol that is unreliable, because it does not need to establish connection to transmit packets and does not retransmit dropped packets. TCP is another transport layer protocol that is reliable, establish connection and retransmit dropped packets.

For a UDP, only one socket would be created to transmission. A socket on the client side and server side would be created in TCP connection. A server can have multiple sockets for one or different transmission protocols.

You might be interested in
The Event Viewer (Microsoft Windows) or Console (Apple Mac OS X) is used for what purpose?
Sveta_85 [38]

Answer:

to view incidents recorded in the Application, Security, and System logs

Explanation:

8 0
3 years ago
The attached question
FinnZ [79.3K]
Constructor method

The new operator instantiates a class by allocating memory for a new object of that type. new requires a single argument: a call to a constructor method. Constructor methods are special methods provided by each Java class that are responsible for initializing new objects of that type.
8 0
3 years ago
Write a c++ program that prints the intial letter of any name​
Shalnov [3]

Answer:

#include<iostream>

using namespace std;

int main(){

char str[20];

int i=0;

std::cout<<"Enter a name:" ;

cin>>str;

cout<<*str;

while(str[i]!='\0'){

if(str[i]==' '){

i++;

cin>>*(str+i);

}

i++;

}

return 0;

}

6 0
3 years ago
what happens to a local variable when a function call completes (and control returns to the calling statement)
Liono4ka [1.6K]

When a function call completes (and control returns to the calling statement) the local variable is undefined.

After the function call is finished, the local variable can be utilized outside of the function at any time. Until the function is called again, a local variable holds onto its value.

While local variables are those that are defined inside a function and have a scope that is specific to that function only, global variables are those that are defined outside of function having global scope.

Local variables are exclusive to a given function and are produced within that function. It cannot be accessed elsewhere other than the function.

Since there are no local variables, the value from the global variables will be used; however, you must ensure that the names of the local and global variables match.

If a variable is modified or created inside of a function but isn't declared a global variable, it is considered local variable.

To learn more about local variable click here:

brainly.com/question/27840441

#SPJ4

7 0
1 year ago
30 POINTS FOT THE ANSWER FAST
sasho [114]

The industry I chose is the fashion industry and how web design has made an impact on that industry are:

  • It often impact the visual style of cloths.
  • It has helped in making of nice and good cloth design.
  • It aid in design and visual effect of its product.

<h3>What is the impact of web design?</h3>

Web design is known to be a key  parts of Internet marketing strategy as it helps in digital customer experience in a lot of ways.

The skill needed are:

  • Visual design
  • The use of Design software.
  • HTML.
  • JavaScript, etc.

Therefore, The industry I chose is the fashion industry and how web design has made an impact on that industry are:

  • It often impact the visual style of cloths.
  • It has helped in making of nice and good cloth design.
  • It aid in design and visual effect of its product.

Learn more about  fashion industry  from

brainly.com/question/27318787

#SPJ1

4 0
3 years ago
Other questions:
  • Suppose that bClass is a class. Which of the following statements correctly derives the class dClass from bClass? a. class dClas
    12·1 answer
  • Enter the cube's edge: 4<br> The surface area is 96 square units.<br> Python
    12·1 answer
  • What does the /var directory contain?
    7·1 answer
  • Ryan is applying a sort to the data in a table that you have inserted in Word. Which option is important for most tables that ha
    11·2 answers
  • Why should you avoid the use of sarcasm, clichés, and idioms in business letters?
    11·2 answers
  • Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 5
    15·1 answer
  • Which of the following are benefits of designing a scalable system? Choose 3 options.
    5·1 answer
  • Choose the term to complete the sentence.
    15·1 answer
  • You can tell a cell is the active cell when it has a
    12·2 answers
  • What is the definition of a unit test from a devops perspective?.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!