Example #1
0
 /// <summary>
 /// Removes specified session from sessions collection.
 /// </summary>
 /// <param name="session">Session to remove.</param>
 internal protected void RemoveSession(SocketServerSession session)
 {
     lock (m_pSessions)
     {
         m_pSessions.Remove(session);
     }
 }
Example #2
0
 /// <summary>
 /// Adds specified session to sessions collection.
 /// </summary>
 /// <param name="session">Session to add.</param>
 internal protected void AddSession(SocketServerSession session)
 {
     lock (m_pSessions)
     {
         m_pSessions.Add(session);
     }
 }
 internal void RemoveSessionX(SocketServerSession session)
 {
     RemoveSession(session);
 }
 internal void AddSessionX(SocketServerSession session)
 {
     AddSession(session);
 }