Basic C# Networking Project

For a com­puter sci­ence class, Remot­ing and Net­work­ing with C#, we had a net­work­ing project to do that I thought I would put out to see if it helps any­one else look­ing for a basic net­work­ing project with .NET. The project can be found here. As usual the code is licensed with an MIT License, so do with it what you will.

The project has a client and a server app. The client plays a game of Tic-Tac-Toe, and as the game pro­gresses sends mes­sages back to the server via a TCP Stream of mes­sages about the state of the game. These mes­sages are then writ­ten to the con­sole of the server. After the client exits the server shuts down.

Some pos­si­ble future ideas, includ­ing mak­ing this a GUI appli­ca­tion, includ­ing a com­pute based oppo­nent and allow­ing two dif­fer­ent clients to con­nect via the server and play against each other. All of these would be good ways for this project to move forward.

Hope you like the code.

Comments are disabled for this post