https://github.com/Cylix/tacopie
C++ TCP Library - NO LONGER MAINTAINED
https://github.com/Cylix/tacopie
cpp cpp11 no-dependencies tcp tcp-client tcp-server
Last synced: 7 months ago
JSON representation
C++ TCP Library - NO LONGER MAINTAINED
- Host: GitHub
- URL: https://github.com/Cylix/tacopie
- Owner: Cylix
- License: mit
- Archived: true
- Created: 2016-11-23T21:42:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-16T20:57:40.000Z (about 7 years ago)
- Last Synced: 2024-07-31T22:44:45.846Z (about 1 year ago)
- Topics: cpp, cpp11, no-dependencies, tcp, tcp-client, tcp-server
- Language: C++
- Homepage:
- Size: 1.01 MB
- Stars: 374
- Watchers: 26
- Forks: 131
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Important
Please be advised that this library **is no longer maintained**.
I have maintained this library for over 2 years, but I do not have enough time to provide a reliable support and continuous development for any longer.
Any existing or new issues will **not** be treated and I do not guarantee to merge any new pull request.
If anyone is willing to take over this project, feel free to fork this project and message me to add a link to your fork in this README.
![]()
# Taco Pie [](https://travis-ci.org/Cylix/tacopie) [](https://ci.appveyor.com/project/Cylix/tacopie)
`tacopie` is a multi-platform TCP Client & Server C++11 library.## Requirement
`tacopie` has **no dependency**. Its only requirement is `C++11`.## Example
`tacopie::tcp_server`:
```cpp
tacopie::tcp_server s;
s.start("127.0.0.1", 3001, [] (const std::shared_ptr& client) -> bool {
std::cout << "New client" << std::endl;
return true;
});
```
`tacopie::tcp_server` [full documentation](https://github.com/Cylix/tacopie/wiki/TCP-Server) and [detailed example](https://github.com/Cylix/tacopie/wiki/Examples#tcp-server).`tacopie::tcp_client`:
```cpp
tacopie::tcp_client client;
client.connect("127.0.0.1", 3001);
client.async_read({ 1024, [&] (tacopie::tcp_client::read_result& res) {
client.async_write({ res.buffer, nullptr });
} });
```
`tacopie::tcp_client` [full documentation](https://github.com/Cylix/tacopie/wiki/TCP-Client) and [detailed example](https://github.com/Cylix/tacopie/wiki/Examples#tcp-client).## Wiki
A [Wiki](https://github.com/Cylix/tacopie/wiki) is available and provides full documentation for the library as well as [installation explanations](https://github.com/Cylix/tacopie/wiki/Installation).# Doxygen
A [Doxygen documentation](https://cylix.github.io/tacopie/html/index.html) is available and provides full API documentation for the library.## License
`tacopie` is under [MIT License](LICENSE).## Contributing
Please refer to [CONTRIBUTING.md](CONTRIBUTING.md).## Author
[Simon Ninon](http://simon-ninon.fr)