public void Detach(NetworkSocketState state)
 {
     foreach (uint id in state.PacketIdList())
     {
         Routes.Remove(id);
     }
 }
 public void Attach(NetworkSocketState state)
 {
     foreach (uint id in state.PacketIdList())
     {
         Routes.Add(id, state);
     }
 }