• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..21-Aug-2025-

README A D21-Aug-2025510 1311

echo.c A D21-Aug-20255.6 KiB156111

echo.h A D21-Aug-2025519 164

message.c A D21-Aug-20251.7 KiB4830

message.h A D21-Aug-20251.2 KiB4225

rules.mk A D21-Aug-2025537 2412

struct.c A D21-Aug-2025701 2413

struct.h A D21-Aug-2025772 3017

README

1This is a simple example of reading/writing messages back and forth.
2
3The program assumes that it starts up with a handle value to a channel and
4that something on the other end of that channel is sending some number of
5Echo calls along the pipe. The program:
6*) waits for the channel to be readable
7*) reads an incoming message
8*) validates that it seems sane
9*) formats a reply message
10*) sends the reply
11*) goes back to waiting
12until the channel peer is closed or any other error is encountered.
13