MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / GetConnectionCount

Method GetConnectionCount

internal/vnc/session_manager.go:142–147  ·  view source on GitHub ↗

GetConnectionCount returns the number of active connections to this session.

()

Source from the content-addressed store, hash-verified

140
141// GetConnectionCount returns the number of active connections to this session.
142func (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.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected