95.165.121 8023 1
The command-line arguments are the IP address and port number that the server
should use, and the number of successive client connections to accept before exiting.
13
14 Why We Need Model-Based Testing
Temperature
sensor
Embedded
computer
(Server)
TCP/IP network
commands
responses
Data logging
computer
(Client)
Figure 2.1. Remote instrument, a client/server system.
At the data storage computer, we invoke the client program Logger:
Logger 128.95.165.121 8023 3 10 F
Here the command line arguments are the server host IP address and port number, the
number of temperature samples to acquire before exiting, the time interval between
samples in seconds, and the units (Celsius or Fahrenheit) for expressing the samples.
Logger then acquires the samples and writes them to the console, along with a time
stamp and information about the server.
2006-10-26 13:12:42Z Temperature server at port 8023 reports 72.2 F
2006-10-26 13:12:52Z Temperature server at port 8023 reports 72.4 F
2006-10-26 13:13:02Z Temperature server at port 8023 reports 72.5 F
Monitor also writes messages about client connections to the console on the
embedded computer.
2006-10-26 13:12:34Z Temperature server binds port 8023
2006-10-26 13:12:42Z Temperature server accepts connection
2006-10-26 13:13:12Z Temperature server connection closed
2006-10-26 13:13:12Z Temperature server exits
It might seem that not much could go wrong with such a simple system.
Pages:
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45