Source Code and Compiled Executable

This project was written for my Game Engine Design course as DeVry. In this course, various parts of a game engine were split up between several teams in the class, and my team was assigned the Networking core.

For this project I worked with 2 other people, and served as Team Leader. The module itself uses Winsock 2 to implement TCP and UDP communications, including binding sockets and listening/sending data.

The project implements classes to encapsulate TCP and UDP Sockets, and a TCP Listener, as well as a data neutral packet (allowing the data to be cast as whatever is necessary). It implements the Service Locator design pattern as well, allowing it to be easily plugged into the completed engine.

Included with this is a simple console application to demonstrate it. When run, it prompts for the role the app should fulfill (server or client, and TCP or UDP protocol). The client should ask for a message to be sent, and the server should receive and display it after communication is complete. It is meant to be run locally, and has the ip address hard coded to the loopback address (127.0.0.1).

Leave a comment