CycleTLS icon indicating copy to clipboard operation
CycleTLS copied to clipboard

Compile go sources as a library (.dll .so)

Open ism opened this issue 4 years ago • 2 comments

Hello!

Thank you for a very useful project! ❤️ I am trying to integrate it into current project and came across some limitation due to socket usage. Using it in production\consumer app, assigning port to each consumer brings additional complexity. My suggestion is to compile .exe as a c library as explained here and call function from it. As additional bonus, this library could be called from C, Python, Ruby, Java... basically everything! Let me know what you think!

Thanks!

ism avatar Nov 17 '21 07:11 ism

Currently there are performance related issues with doing this, I am working on developing this functionality the main issue is being the C layer for processing channels.

For Now the Golang side of CycleTLS now operates as the server and can listen for multiple websocket connections. This means you no longer need to configure multiple ports or spawn multiple go instances if you import the package more than once.

Danny-Dasilva avatar Mar 27 '22 00:03 Danny-Dasilva