mirror of https://github.com/mkerrisk/man-pages
unix.7: Some wording improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
eb73e8ad50
commit
84c8cae2c2
18
man7/unix.7
18
man7/unix.7
|
@ -620,21 +620,21 @@ that the applications that
|
||||||
pathname sockets follow the rules outlined above under
|
pathname sockets follow the rules outlined above under
|
||||||
.IR "Pathname sockets" .
|
.IR "Pathname sockets" .
|
||||||
.SH EXAMPLE
|
.SH EXAMPLE
|
||||||
The following code demonstrates the usage of sockets for local interprocess
|
The following code demonstrates the use of sequenced-packet
|
||||||
communication.
|
sockets for local interprocess communication.
|
||||||
It consists of two programs.
|
It consists of two programs.
|
||||||
The server program waits for a connection from the client program.
|
The server program waits for a connection from the client program.
|
||||||
The client sends all of its command-line arguments.
|
The client sends each of its command-line arguments in separate messages.
|
||||||
The server treats them as integers and adds them up.
|
The server treats the incoming messages as integers and adds them up.
|
||||||
The client sends the command string "END".
|
The client sends the command string "END".
|
||||||
The server returns the result.
|
The server sends back a message containing the sum of the client's integers.
|
||||||
The client prints the sum of the received integers and exits.
|
The client prints the sum and exits.
|
||||||
The server waits for the next client to connect.
|
The server waits for the next client to connect.
|
||||||
To stop the server the client is called with the command-line argument "DOWN".
|
To stop the server, the client is called with the command-line argument "DOWN".
|
||||||
.PP
|
.PP
|
||||||
The following output was recorded while running the server in the background
|
The following output was recorded while running the server in the background
|
||||||
and repeatedly calling the client.
|
and repeatedly executing the client.
|
||||||
Execution of the server program ended when receiving the "DOWN" command.
|
Execution of the server program ends when it receives the "DOWN" command.
|
||||||
.SS Example output
|
.SS Example output
|
||||||
.in +4n
|
.in +4n
|
||||||
.nf
|
.nf
|
||||||
|
|
Loading…
Reference in New Issue