Yostivanich.com

Surfing the web and hopefully learning something new every day.

Yostivanich.com header image 2

Basic C# Networking Project

June 25th, 2008 by Justin Yost

For a computer science class, Remoting and Networking with C#, we had a networking project to do that I thought I would put out to see if it helps anyone else looking for a basic networking 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 progresses sends messages back to the server via a TCP Stream of messages about the state of the game. These messages are then written to the console of the server. After the client exits the server shuts down.

Some possible future ideas, including making this a GUI application, including a compute based opponent and allowing two different clients to connect 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.

Tags:   · · · Comments

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus