https://github.com/quchen/client-server-example
Simple IO-heavy application for demonstration purposes
https://github.com/quchen/client-server-example
Last synced: 10 months ago
JSON representation
Simple IO-heavy application for demonstration purposes
- Host: GitHub
- URL: https://github.com/quchen/client-server-example
- Owner: quchen
- License: other
- Created: 2016-09-02T15:58:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-03T07:52:44.000Z (over 9 years ago)
- Last Synced: 2025-01-22T09:09:08.757Z (12 months ago)
- Language: Haskell
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Client-Server example program
This is a small example program to show a simple IO-heavy application.
## Server
The server waits for clients to connect. When a client sends a message, the
server will check whether the message is a number and add a special note if it
is prime. Other messages are simply printed in verbatim.
To start the server, run
```
stack build --exec simple-server
```
## Client
The client connects to a server, and sends linewise input to it. Clients can
quit with "quit".
To start a single client, run
```
stack build --exec simple-client
```