|
|
|
|
40
|
---
|
40
|
---
|
41
|
|
41
|
|
42
|
|
42
|
|
43
|
-##Communication between computers
|
|
|
|
|
43
|
+##Communication between Computers
|
44
|
|
44
|
|
45
|
Computers communicate with each other through the *Internet Protocol* (IP). When a computer sends information to another computer it is sent via *Internet Packets* that contain the Internet address of the sender computer (*source address*), and the Internet address of the receiving computer (*destination address*). Internet addresses are used to guide information from one computer to another, but, once a packet arrives to its destination, who is supposed to receive the information? Which application should receive the information?
|
45
|
Computers communicate with each other through the *Internet Protocol* (IP). When a computer sends information to another computer it is sent via *Internet Packets* that contain the Internet address of the sender computer (*source address*), and the Internet address of the receiving computer (*destination address*). Internet addresses are used to guide information from one computer to another, but, once a packet arrives to its destination, who is supposed to receive the information? Which application should receive the information?
|
46
|
|
46
|
|
|
|
|
|
115
|
136.145.181.126 136.145.181.99 57 33 965 14
|
115
|
136.145.181.126 136.145.181.99 57 33 965 14
|
116
|
```
|
116
|
```
|
117
|
|
117
|
|
118
|
-###Exercise 0: Familiarize yourself with the `Packet` class.
|
|
|
|
|
118
|
+###Exercise 0: Familiarize Yourself with the `Packet` Class.
|
119
|
|
119
|
|
120
|
####Instructions
|
120
|
####Instructions
|
121
|
|
121
|
|
|
|
|
|
130
|
|
130
|
|
131
|
4. A method `met` of the object in position `i` in the vector can be accessed writing `V[i].met()`. The contents of all of the attributes of an object can be assigned to another object of the same class “at once”. For example, you can assign the contents of all of the attributes of the object in the position `k` of the vector `V` the corresponding attributes of the object in the position `i` of the vector `V` by writing `V[i]=V[k]`.
|
131
|
4. A method `met` of the object in position `i` in the vector can be accessed writing `V[i].met()`. The contents of all of the attributes of an object can be assigned to another object of the same class “at once”. For example, you can assign the contents of all of the attributes of the object in the position `k` of the vector `V` the corresponding attributes of the object in the position `i` of the vector `V` by writing `V[i]=V[k]`.
|
132
|
|
132
|
|
133
|
-###Exercise 1: Filter communications
|
|
|
|
|
133
|
+###Exercise 1: Filter Communications
|
134
|
|
134
|
|
135
|
####Instructions
|
135
|
####Instructions
|
136
|
|
136
|
|
|
|
|
|
155
|
|
155
|
|
156
|
---
|
156
|
---
|
157
|
|
157
|
|
158
|
-###Exercise 2: Sorting data
|
|
|
|
|
158
|
+###Exercise 2: Sorting Data
|
159
|
|
159
|
|
160
|
|
160
|
|
161
|
####Instructions
|
161
|
####Instructions
|