networking-demo

networking-demo.git
git clone git://git.lenczewski.org/networking-demo.git
Log | Files | Refs | README

README (655B)


      1 # NetworkingDemo
      2 
      3 Shows off how I would wrap TcpListener and TcpClient to make it easier to send
      4 arbitrary packets efficiently and correctly. Different packet types are found
      5 under `Packets.cs`. The server and client implementations are found under
      6 `Network.cs`. Also under `Network.cs` is a common "Connection" object, that
      7 implements packet reading and writing over a NetworkStream (avoiding buffering
      8 where possible). A demo program is available under the expected `Program.cs`.
      9 
     10 If you want to test building under .NET standard 2.1 (the default version
     11 supported by Unity), switch out the commented netstandard2.1 in the
     12 `NetworkingDemo.csproj` file.