Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Simple libuv-based single-threaded asynchronous TCP & UDP socket classes in C++.

License

Notifications You must be signed in to change notification settings

eminfedar/simple-libuv-sockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asynchronous Sockets for C++ [libuv]

NOT FULLY FINISHED

Simple libuv-based single-threaded asynchronous TCP & UDP client & server classes in C++.

// Initialize a tcp socket.
TCPSocket tcpSocket;

// Connect to the host.
tcpSocket.Connect("127.0.0.1", 8888, [&] {
    cout << "Connected to the server successfully." << endl;

    // Send String:
    tcpSocket.Send("Hello Server!");
});

Super Easy!

CPU & RAM Usages (with 1000 tcp connection & with single udp server + client): imagehere.

Lightweight!

Examples:

imagehere You can compile all the examples by just going in the examples/ directory and run make in terminal:

About

Simple libuv-based single-threaded asynchronous TCP & UDP socket classes in C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published