Wrapping the network code
For our convenience, let us create a wrapper for a networking application. In using this wrapper, we do not need to reuse our code over and over again; thus, making our programming process simpler and more efficient. For now, just create two files called wrapper.h
and wrapper.cpp
, and we will include them in the compilation process in our next code. Because the source codes are quite long in length and will not be convenient to print in this book, I have made them into downloadable files that you can access in this book's repository at www.packtpub.com/networking-and-servers/boostasio-c-network-programming-second-edition. Go to the Code Files section.