dist intro client/server code

This commit is contained in:
Remzi Arpaci-Dusseau
2019-05-30 12:32:20 -05:00
parent acd67a3a42
commit 7f7c16cd40
6 changed files with 199 additions and 0 deletions

17
dist-intro/README.md Normal file
View File

@@ -0,0 +1,17 @@
# Distributed Systems: Introduction
A simple UDP client and server:
- `client.c`: example client code, sends a message to the server and waits for a reply
- `server.c`: example server code, waits for messages indefinitely and replies
Both use `udp.c` as a simple UDP communication library.
The `Makefile` builds `client` and `server` executables. Type `make` to do this.
To run: type `server &` to run the server in the background; then type `client` to
run the client. You will likely then want to kill the server if you are done.
If you want to run these on different machines, you'll have to change the client
to send messages to the machine the server is running upon, instead of `localhost`.