diff --git a/.vs/HaoYueTunnel/DesignTimeBuild/.dtbcache.v2 b/.vs/HaoYueTunnel/DesignTimeBuild/.dtbcache.v2 index 9508649..bf3d789 100644 Binary files a/.vs/HaoYueTunnel/DesignTimeBuild/.dtbcache.v2 and b/.vs/HaoYueTunnel/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/HaoYueTunnel/FileContentIndex/29b3f6a9-f687-41f5-be50-da3de4134f93.vsidx b/.vs/HaoYueTunnel/FileContentIndex/29b3f6a9-f687-41f5-be50-da3de4134f93.vsidx new file mode 100644 index 0000000..0e188dd Binary files /dev/null and b/.vs/HaoYueTunnel/FileContentIndex/29b3f6a9-f687-41f5-be50-da3de4134f93.vsidx differ diff --git a/.vs/HaoYueTunnel/FileContentIndex/882ae609-ee52-4e8e-aa4a-d7915e03b145.vsidx b/.vs/HaoYueTunnel/FileContentIndex/882ae609-ee52-4e8e-aa4a-d7915e03b145.vsidx deleted file mode 100644 index 78f2c41..0000000 Binary files a/.vs/HaoYueTunnel/FileContentIndex/882ae609-ee52-4e8e-aa4a-d7915e03b145.vsidx and /dev/null differ diff --git a/.vs/HaoYueTunnel/FileContentIndex/65ec47c7-37cf-4450-91f8-b07058d860d3.vsidx b/.vs/HaoYueTunnel/FileContentIndex/922a489f-6103-417b-90d9-2a80da2ce021.vsidx similarity index 72% rename from .vs/HaoYueTunnel/FileContentIndex/65ec47c7-37cf-4450-91f8-b07058d860d3.vsidx rename to .vs/HaoYueTunnel/FileContentIndex/922a489f-6103-417b-90d9-2a80da2ce021.vsidx index e72a09c..b609bf5 100644 Binary files a/.vs/HaoYueTunnel/FileContentIndex/65ec47c7-37cf-4450-91f8-b07058d860d3.vsidx and b/.vs/HaoYueTunnel/FileContentIndex/922a489f-6103-417b-90d9-2a80da2ce021.vsidx differ diff --git a/.vs/HaoYueTunnel/FileContentIndex/fcec81be-7b5b-483a-bab4-d7a798496caa.vsidx b/.vs/HaoYueTunnel/FileContentIndex/aa128ca2-2209-45c5-8cb5-98d2b42ab6ef.vsidx similarity index 60% rename from .vs/HaoYueTunnel/FileContentIndex/fcec81be-7b5b-483a-bab4-d7a798496caa.vsidx rename to .vs/HaoYueTunnel/FileContentIndex/aa128ca2-2209-45c5-8cb5-98d2b42ab6ef.vsidx index 8646054..c3b505e 100644 Binary files a/.vs/HaoYueTunnel/FileContentIndex/fcec81be-7b5b-483a-bab4-d7a798496caa.vsidx and b/.vs/HaoYueTunnel/FileContentIndex/aa128ca2-2209-45c5-8cb5-98d2b42ab6ef.vsidx differ diff --git a/.vs/HaoYueTunnel/FileContentIndex/b3657071-2613-449a-9f07-3cdb50c11e6f.vsidx b/.vs/HaoYueTunnel/FileContentIndex/b3657071-2613-449a-9f07-3cdb50c11e6f.vsidx deleted file mode 100644 index 3a6aa69..0000000 Binary files a/.vs/HaoYueTunnel/FileContentIndex/b3657071-2613-449a-9f07-3cdb50c11e6f.vsidx and /dev/null differ diff --git a/.vs/HaoYueTunnel/FileContentIndex/d0a9d465-1c80-4f86-9755-8e5c683445b6.vsidx b/.vs/HaoYueTunnel/FileContentIndex/d0a9d465-1c80-4f86-9755-8e5c683445b6.vsidx new file mode 100644 index 0000000..7c3f07c Binary files /dev/null and b/.vs/HaoYueTunnel/FileContentIndex/d0a9d465-1c80-4f86-9755-8e5c683445b6.vsidx differ diff --git a/.vs/HaoYueTunnel/v17/.futdcache.v2 b/.vs/HaoYueTunnel/v17/.futdcache.v2 index dea81b6..4b2256f 100644 Binary files a/.vs/HaoYueTunnel/v17/.futdcache.v2 and b/.vs/HaoYueTunnel/v17/.futdcache.v2 differ diff --git a/.vs/HaoYueTunnel/v17/.suo b/.vs/HaoYueTunnel/v17/.suo index dacf6e9..06ad9bb 100644 Binary files a/.vs/HaoYueTunnel/v17/.suo and b/.vs/HaoYueTunnel/v17/.suo differ diff --git a/.vs/ProjectEvaluation/haoyuetunnel.metadata.v5.2 b/.vs/ProjectEvaluation/haoyuetunnel.metadata.v5.2 index cd840fa..7033315 100644 Binary files a/.vs/ProjectEvaluation/haoyuetunnel.metadata.v5.2 and b/.vs/ProjectEvaluation/haoyuetunnel.metadata.v5.2 differ diff --git a/.vs/ProjectEvaluation/haoyuetunnel.projects.v5.2 b/.vs/ProjectEvaluation/haoyuetunnel.projects.v5.2 index 47f64ea..85b871f 100644 Binary files a/.vs/ProjectEvaluation/haoyuetunnel.projects.v5.2 and b/.vs/ProjectEvaluation/haoyuetunnel.projects.v5.2 differ diff --git a/NetLib/HaoYueNet.ServerNetwork.dll b/NetLib/HaoYueNet.ServerNetwork.dll index e90aa93..1f7ca2a 100644 Binary files a/NetLib/HaoYueNet.ServerNetwork.dll and b/NetLib/HaoYueNet.ServerNetwork.dll differ diff --git a/ServerCore/NetWork/IOCPNetWork.cs b/ServerCore/NetWork/IOCPNetWork.cs index b45e8fb..10068a8 100644 --- a/ServerCore/NetWork/IOCPNetWork.cs +++ b/ServerCore/NetWork/IOCPNetWork.cs @@ -15,20 +15,7 @@ namespace ServerCore.NetWork : base(numConnections, receiveBufferSize) { mServerType = serverType; - - m_clientCount = 0; - m_maxConnectNum = numConnections; - m_revBufferSize = receiveBufferSize; - // allocate buffers such that the maximum number of sockets can have one outstanding read and - //write posted to the socket simultaneously - m_bufferManager = new BufferManager(receiveBufferSize * numConnections * opsToAlloc, receiveBufferSize); - - m_pool = new SocketEventPool(numConnections); - m_maxNumberAcceptedClients = new Semaphore(numConnections, numConnections); - - ClientNumberChange += IOCPNetWork_ClientNumberChange; - } private void IOCPNetWork_ClientNumberChange(int num, AsyncUserToken token)