Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/themarlboroman/listener_service
A reusable listener service in C++ which can be injected with arbitrary logic.
https://github.com/themarlboroman/listener_service
daemon listener network usable
Last synced: 7 days ago
JSON representation
A reusable listener service in C++ which can be injected with arbitrary logic.
- Host: GitHub
- URL: https://github.com/themarlboroman/listener_service
- Owner: TheMarlboroMan
- License: mit
- Created: 2018-06-19T17:23:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-10T06:21:03.000Z (over 2 years ago)
- Last Synced: 2024-11-12T12:31:51.857Z (2 months ago)
- Topics: daemon, listener, network, usable
- Language: C++
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# listener_service
A reusable listener service in C++ which can be injected with arbitrary logic.
## Dependencies
This application depends on the libraries located at:
https://github.com/TheMarlboroMan/log
https://github.com/TheMarlboroMan/toolsBe sure to build them first!. If you find yourself having problems, maybe you need earlier versions (actually, I would need to update this).
## Building
Build and install these libraries:
- https://github.com/TheMarlboroMan/log
- https://github.com/TheMarlboroMan/toolsDo the makefile dance.
# Building with SSL
If you are bold enough, you may want to build with SSL in which case you must
activate the WITH_SSL flag in cmake. This will build an extra object and change the behaviour the enable_ssl and has_ssl methods on the server class.Also, if you are using a current OpenSSL version, make sure to add the WITH_SSL_CURRENT
flag to your cmake, so it tries to use TLS_method().Finally, if you are building with openssl and want to try the example, make sure
to include the certificate file in the same directory as the example file
with the "cert.pem" filename.Apropos the source: the open_ssl wrapper object will always exist in code, but
will have different definitions if compiled with or without SSL, so worry not
about that.# Generating the certificate and key files:
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
If you'd like no passphrase, add "-nodes"
If you are just testing, add -subj '/CN=localhost'
# Implementing:
TODO TODO TODO TODO
About SSL capabilities.
Handling exceptions on write...