public string ReceiveMessage(NetworkStream stream) { byte[] arr = new byte[BUFFER_SIZE]; int byteCount = stream.Read(arr, 0, BUFFER_SIZE); string msg = Helper.BytesToString(arr, byteCount); return(msg); }
public string ReceiveMessage(NetworkStream stream) { byte[] arr = new byte[BUFFER_SIZE]; int byteCount = stream.Read(arr, 0, BUFFER_SIZE); string msg = Helper.BytesToString(arr, byteCount); return(msg); }