Back to articles
Simple C++ networking libraries don't exist anymore - here's the fix.

Simple C++ networking libraries don't exist anymore - here's the fix.

via Dev.toMehdi BR

Recap About 4 days ago, I posted a blog about my networking library, NovusNet, found here. The problem C++ networking libraries fall into 2 categories: Either too complex for simple use, or easy but unreliable. NovusNet fills a gap: Simple, secure, and fast. What I added since then Now, NovusNet offers a perfectly secure connection between 2 devices. Fully encrypted and limited access with passwords. Another big thing is the inclusion of NFTP, my own file transfer protocol, now integrated into the library. NFTP transfers any size file across the network safely and quickly. Usage Server-side: #include "nn.hpp" #include <iostream> #include <chrono> int main (){ //runServer() now takes an additional variable: string password. runServer ( 9090 , "YOUR_PASSWORD" ); // onMessage listens for any incoming message onMessage ([]( int clientN , std :: string msg ){ // if the client announces a file is coming, receive it if ( msg == "SENDING_FILE" ){ //recvFile() takes the download folder, and the

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles