This paper shows how using C++ classes to implement a communications protocol can improve the developer’s efficiency then I will discuss some techniques for improving the execution efficiency.