https://github.com/deep5050/dumb-server
Simple server-client applications implemented in different ways
https://github.com/deep5050/dumb-server
c client-server socket-programming tcp-server tcp-socket
Last synced: about 1 month ago
JSON representation
Simple server-client applications implemented in different ways
- Host: GitHub
- URL: https://github.com/deep5050/dumb-server
- Owner: deep5050
- License: wtfpl
- Created: 2020-04-10T06:00:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T04:04:55.000Z (about 6 years ago)
- Last Synced: 2025-02-22T06:25:05.448Z (over 1 year ago)
- Topics: c, client-server, socket-programming, tcp-server, tcp-socket
- Language: C
- Homepage:
- Size: 227 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DUMB-SERVER [](https://travis-ci.org/deep5050/dumb-server) [](https://www.codacy.com/manual/dipankarpal5050/dumb-server?utm_source=github.com&utm_medium=referral&utm_content=deep5050/dumb-server&utm_campaign=Badge_Grade) [](https://GitHub.com/deep5050/dumb-server/graphs/commit-activity)  
[](https://gitpod.io/#https://github.com/deep5050/dumb-server) [](https://GitHub.com/deep5050/)
Simple client-server applications implemented in different ways:

1. Using pthread()
2. Using fork()
3. Using select()
4. Using Conditional Compilation Method
5. Using Ncurses Library
# USAGE
## Server using select()
server:
file: dumb_Sserver
usage: ./dumb_Sserver
client:
file: dumb_client
usage: ./dumb_client
options: type '0' or 'localhost' to connect to the local server else specify.
## Multi-process server
server:
file: dumb_Pserver
usage: ./dumb_Pserver
client:
file: dumb_client
usage: ./dumb_client
options: type '0' or 'localhost' to connect to the local server else specify.
## Multi-thread server
server:
file: dumb_Tserver
usage: ./dumb_Tserver
client:
file: dumb_client
usage: ./dumb_client
options: type '0' or 'localhost' to connect to the local server else specify.
## Realtime server (BUGS)
A realtime ( charactar by charactar ) server-client system that mimics talnet's behaviour.
>BUGS:
>1. more than 1 clients will try to print on the same >terminal causing chaos ( could not make it to force each >new child to write on its own terminal)
>2. BACKSPACE on the server side not working
>3. server prints the character it got during the last recieve() ( 1 char delay )
server:
file: dumb_Nserver
usage: ./dumb_Nserver
client:
file: dumb_Nclient
usage: ./dumb_Nclient
# LICENSE

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.