Skip to content

certifiedpaster/cpp-async-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-async-tcp

A simple wrapper for sockets. Currently WinSock only, however easily changeable to support Linux.

Getting started

Clone the repository and include the necessary files in your project. How to set up a server or client and how to connect is given in the client_/server_main.cpp file.

If you would like to include your own packets, please read packet/packet.h. There, everything is explained in the form of comments.

Important notes

When implementing your own packets, remember to use platform independent types so that your client and server can run on different architectures/OSes.

Additionally, as of now the server has no way of knowing if a client disconnected other than sending a packet to the client. A workaround for this is for the client to either send a shutdown packet before disconnecting, or to add a heartbeat packet.

About

A TCP socket wrapper written in C++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages