Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.