small grammar changes (#27575)

This commit is contained in:
Briana Cowles
2019-01-30 17:05:31 -05:00
committed by Randell Dawson
parent 6e80bb3c79
commit c6d4a54a7d

View File

@ -10,7 +10,7 @@ A socket is one endpoint of a two-way communication link between two programs ru
When a program is running on a network, it is available to access from different locations other than the local location. By different locations, I mean all the computers on the same network can access it. But, how will they? Every program registers itself with a port number. Think of port number as an apartment number in a huge apartment complex. If a letter is sent to an apartment, the apartment number tells the post office the specific apartment within the building he should go to.
But, how will it arrive at the apartment? Every apartment has there own unique address, the post office looks at those unique address (which is in fact a string) and decides the destination of the letter. In this case, every computer connected to a network will have an IP address which is like an address used when sending a letter through the post office. Likewise, a computer connected to a network needs to know the IP addresses of the other computers on the same network to communicate with them. To communicate with a specific program on a specific computer, the port number for that program is needed. (Think of the apartment number from our apartment analogy.)
But, how will it arrive at the apartment? Every apartment has their own unique address. The post office looks at that unique address and decides the destination of the letter. In this case, every computer connected to a network will have an IP address which is like an address used when sending a letter through the post office. Likewise, a computer connected to a network needs to know the IP addresses of the other computers on the same network to communicate with them. To communicate with a specific program on a specific computer the port number for that program is needed. (Think of the apartment number from our analogy.)
## Basics of Socket Programming