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

Method GetPort

internal/vnc/server.go:260–266  ·  view source on GitHub ↗

GetPort returns the port the server is running on.

()

Source from the content-addressed store, hash-verified

258
259// GetPort returns the port the server is running on.
260func (s *Server) GetPort() int {
261 s.mu.Lock()
262 defer s.mu.Unlock()
263 s.logger.Debug("Requested server port: %d", s.port)
264
265 return s.port
266}
267
268// IsRunning returns whether the server is currently running.
269func (s *Server) IsRunning() bool {

Callers 1

Calls 1

DebugMethod · 0.65

Tested by

no test coverage detected