https://github.com/thecoder93/client-server-example
A little client-server written in C
https://github.com/thecoder93/client-server-example
Last synced: 11 months ago
JSON representation
A little client-server written in C
- Host: GitHub
- URL: https://github.com/thecoder93/client-server-example
- Owner: thecoder93
- Created: 2016-01-27T14:54:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-27T14:56:50.000Z (over 10 years ago)
- Last Synced: 2025-01-01T10:17:29.311Z (over 1 year ago)
- Language: C
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is
This software makes use of parameters. It works only on Unix. You specify a port and hostname when you launch the client and in another terminal you specify the same port of client for establishing a connection between them.
# How it works
For compilation use the command of UNIX `make`. It will found the Makefile and it will compiled the files `client.c` and `server.c`.
Then launch the software followed by parameters.
```sh
./server -p 6090
```
and then the client
```sh
./client -p 6090 -h 127.0.0.1 -s Cooper -n Adam -SN
```
WARNING: launch the server before and then the client because you will have a error: Connection refused.
### Version
1.0.0