My ducks don't need batteries

Net Code

N

The NetworkPacket (Ep. 2)

Before we get to the actual coding I’ll explain a bit about why we will need this class. As you’ve probably guessed from the name it will deal with network packets. However, these are not the actual bit packets that are sent by the TCP layer but a self-contained data packet from the perspective of our setup. It will provide us with a standardized way of knowing what to do and get the...

The ByteBuffer (Ep. 1)

This class will be used to read an array of bytes from the socket and then provide use easy methods for extracting the information from said array into more easily workable data types such as int, float, string, etc. Besides reading this class will also allow us to write data to an array of bytes. This is needed because the socket can only send/receive arrays of bytes so sending an int without...

NetCode Intro

This will be a tutorial series targeted at somewhat knowledgable C# developers about building a TCP server/client setup. I will go over all the bits and bobs I’ve built for my solution and how it all works together to provide a reliable TCP networking layer that’s completely and easily customizable by anyone that follow through this tutorial. Before we get into the actual server and...

My ducks don't need batteries