Open dhbaird opened 10 years ago
Hi @dhbaird, many thanks for this. I've been trying to use a different C++ lib for this using ASIO but its been a ball ache to implement. It has optional boost support I I dont want to use boost in my VS2017 project. I've got over the issues because boost support can be removed and standalone ASIO can be used. The issue I've had is linking to OpenSSL. I just cannot get it working in ASIO. I've tried multiple different versions et-al. This library looks awesome, but I need to inject OpenSSL. The sample is cool, but did you get this working? How did you get OpenSSL linked in? I would really appreciate some advice because I've never hooked in OpenSSL before. What version did you get working, what libs and headers, and what headers do I need for the above code snippet? Any advice would be extremely appreciated.
Rather than have easywsclient depend directly on a specific socket implementation, instead inject the socket implementation. Reasons why this is needed:
Here's some pseudocode along these lines...
New to dependency injection? Miško Hevery explains it best: The Clean Code Talks - Don't Look For Things!. It is also described on the Wikipedia SOLID page.