Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coathier/tcp-cli
ncurses TCP client written in C
https://github.com/coathier/tcp-cli
Last synced: about 2 months ago
JSON representation
ncurses TCP client written in C
- Host: GitHub
- URL: https://github.com/coathier/tcp-cli
- Owner: coathier
- License: mit
- Created: 2024-01-14T12:28:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-15T22:08:03.000Z (about 1 year ago)
- Last Synced: 2024-01-17T02:49:56.100Z (about 1 year ago)
- Language: C
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tcp-cli
A commandline TCP client written in C with ncurses, the TCP server is just here for testing.## Dependencies
libncurses-dev## Usage
You should be able to use the compiler of your choosing.
### Linux
```console
$ clang -lncurses -o client client.c
$ ./client
```
### Windows
This version is very unstable and barely functional, I believe that WPAPoll might not be functional.
```console
> gcc -o client.exe client_win.c -IC:\path\to\library\PDCurses-3.8 -lpdcurses -lws2_32
> .\client.exe
```Write ```exit``` when you are in the application to quit safely.
## Contribute
I went through so many iterations to get to this stage in the code, unfortunately it was a part of a bigger git repository and I had to extract it so there is no version control looking back to it.Previously, I tried multithreading and forking to get the non-blocking IO eventially I landed on this which might look quite weird. Please feel free to contribute there isn't that much code.