diff --git a/QuantumUNET/QNetworkClient.cs b/QuantumUNET/QNetworkClient.cs index 4338e843..f0ca184a 100644 --- a/QuantumUNET/QNetworkClient.cs +++ b/QuantumUNET/QNetworkClient.cs @@ -16,14 +16,14 @@ namespace QuantumUNET public QNetworkClient() { m_MsgBuffer = new byte[65535]; - m_MsgReader = new NetworkReader(m_MsgBuffer); + m_MsgReader = new QNetworkReader(m_MsgBuffer); AddClient(this); } public QNetworkClient(QNetworkConnection conn) { m_MsgBuffer = new byte[65535]; - m_MsgReader = new NetworkReader(m_MsgBuffer); + m_MsgReader = new QNetworkReader(m_MsgBuffer); AddClient(this); SetActive(true); m_Connection = conn; @@ -60,7 +60,7 @@ namespace QuantumUNET private readonly QNetworkMessageHandlers m_MessageHandlers = new(); protected QNetworkConnection m_Connection; private readonly byte[] m_MsgBuffer; - private readonly NetworkReader m_MsgReader; + private readonly QNetworkReader m_MsgReader; protected ConnectState m_AsyncConnect = ConnectState.None; private string m_RequestedServerHost = ""; diff --git a/QuantumUNET/QNetworkServerSimple.cs b/QuantumUNET/QNetworkServerSimple.cs index 905c9d7b..fe94ce6f 100644 --- a/QuantumUNET/QNetworkServerSimple.cs +++ b/QuantumUNET/QNetworkServerSimple.cs @@ -18,7 +18,7 @@ namespace QuantumUNET public ReadOnlyCollection connections { get; } public Dictionary handlers => m_MessageHandlers.GetHandlers(); public byte[] messageBuffer { get; private set; } - public NetworkReader messageReader { get; private set; } + public QNetworkReader messageReader { get; private set; } public Type networkConnectionClass { get; private set; } = typeof(QNetworkConnection); public void SetNetworkConnectionClass() @@ -32,7 +32,7 @@ namespace QuantumUNET m_Initialized = true; NetworkTransport.Init(); messageBuffer = new byte[65535]; - messageReader = new NetworkReader(messageBuffer); + messageReader = new QNetworkReader(messageBuffer); if (hostTopology == null) { var connectionConfig = new ConnectionConfig();