From ba24a4a15c0317ac2fd954f4173b4b79cbdf191e Mon Sep 17 00:00:00 2001
From: lwb <q3213421wrwqr>
Date: 星期三, 11 十一月 2020 17:06:33 +0800
Subject: [PATCH] 9527 unity 升级
---
Assets/Plugins/PocoSDK/TcpClientState.cs | 88 ++++++++++++++++++++++---------------------
1 files changed, 45 insertions(+), 43 deletions(-)
diff --git a/Assets/Plugins/PocoSDK/TcpClientState.cs b/Assets/Plugins/PocoSDK/TcpClientState.cs
index 7eea344..2f2b50f 100644
--- a/Assets/Plugins/PocoSDK/TcpClientState.cs
+++ b/Assets/Plugins/PocoSDK/TcpClientState.cs
@@ -3,52 +3,54 @@
namespace TcpServer
{
- /// <summary>
- /// Internal class to join the TCP client and buffer together
- /// for easy management in the server
- /// </summary>
- public class TcpClientState
- {
- /// <summary>
- /// Constructor for a new Client
- /// </summary>
- /// <param name="tcpClient">The TCP client</param>
- /// <param name="buffer">The byte array buffer</param>
- /// <param name="prot">The protocol filter</param>
- public TcpClientState (TcpClient tcpClient, byte[] buffer, ProtoFilter prot)
- {
- if (tcpClient == null)
- throw new ArgumentNullException ("tcpClient");
- if (buffer == null)
- throw new ArgumentNullException ("buffer");
- if (prot == null)
- throw new ArgumentNullException ("prot");
+ /// <summary>
+ /// Internal class to join the TCP client and buffer together
+ /// for easy management in the server
+ /// </summary>
+ public class TcpClientState
+ {
+ /// <summary>
+ /// Constructor for a new Client
+ /// </summary>
+ /// <param name="tcpClient">The TCP client</param>
+ /// <param name="buffer">The byte array buffer</param>
+ /// <param name="prot">The protocol filter</param>
+ public TcpClientState(TcpClient tcpClient, byte[] buffer, ProtoFilter prot)
+ {
+ if (tcpClient == null)
+ throw new ArgumentNullException("tcpClient");
+ if (buffer == null)
+ throw new ArgumentNullException("buffer");
+ if (prot == null)
+ throw new ArgumentNullException("prot");
- this.TcpClient = tcpClient;
- this.Buffer = buffer;
- this.Prot = prot;
- // this.NetworkStream = tcpClient.GetStream ();
- }
+ this.TcpClient = tcpClient;
+ this.Buffer = buffer;
+ this.Prot = prot;
+ // this.NetworkStream = tcpClient.GetStream ();
+ }
- /// <summary>
- /// Gets the TCP Client
- /// </summary>
- public TcpClient TcpClient { get; private set; }
+ /// <summary>
+ /// Gets the TCP Client
+ /// </summary>
+ public TcpClient TcpClient { get; private set; }
- /// <summary>
- /// Gets the Buffer.
- /// </summary>
- public byte[] Buffer { get; private set; }
+ /// <summary>
+ /// Gets the Buffer.
+ /// </summary>
+ public byte[] Buffer { get; private set; }
- public ProtoFilter Prot { get; private set; }
+ public ProtoFilter Prot { get; private set; }
- /// <summary>
- /// Gets the network stream
- /// </summary>
- public NetworkStream NetworkStream {
- get {
- return TcpClient.GetStream ();
- }
- }
- }
+ /// <summary>
+ /// Gets the network stream
+ /// </summary>
+ public NetworkStream NetworkStream
+ {
+ get
+ {
+ return TcpClient.GetStream();
+ }
+ }
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0