Pool for socket async context objects that share the same memory buffer
コード例 #1
0
ファイル: ServerEntity.cs プロジェクト: Cakez0r/Cakewalk
 public ServerEntity(Socket socket, int worldID, World world, SocketAsyncPool asyncPool)
     : base(socket, worldID, asyncPool.GetArgs(), asyncPool.GetArgs())
 {
     m_asyncPool = asyncPool;
     Name = worldID.ToString();
     m_world = world;
 }
コード例 #2
0
ファイル: ServerEntity.cs プロジェクト: niklaskdk/Cakewalk
 public ServerEntity(Socket socket, int worldID, World world, SocketAsyncPool asyncPool)
     : base(socket, worldID, asyncPool.GetArgs(), asyncPool.GetArgs())
 {
     m_asyncPool = asyncPool;
     Name        = worldID.ToString();
     m_world     = world;
 }