GetConnectionCount returns the number of active connections to this session.
()
| 140 | |
| 141 | // GetConnectionCount returns the number of active connections to this session. |
| 142 | func (s *VNCSession) GetConnectionCount() int { |
| 143 | s.mutex.RLock() |
| 144 | defer s.mutex.RUnlock() |
| 145 | |
| 146 | return s.activeConnections |
| 147 | } |
| 148 | |
| 149 | // IsExpired checks if this session has been inactive for longer than the |
| 150 | // specified timeout duration. Expired sessions are candidates for cleanup. |
no outgoing calls
no test coverage detected