Coder Social home page Coder Social logo

listener_service's Introduction

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/tools

Be 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:

Do 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...

listener_service's People

Contributors

themarlboroman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.