progress on improving responses

This commit is contained in:
Sem van der Hoeven
2020-09-25 14:30:33 +02:00
parent 23846b14bc
commit d3a37d0238
4 changed files with 68 additions and 59 deletions

View File

@@ -43,6 +43,11 @@ namespace RH_Engine
t.Start();
}
/// <summary>
/// reads a response from the server
/// </summary>
/// <param name="stream">the network stream to use</param>
/// <returns>the returned message from the server</returns>
public static string ReadPrefMessage(NetworkStream stream)
{
byte[] lengthBytes = new byte[4];