upnp

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*yuppie.Server
	// contains filtered or unexported fields
}

Server implements the muserv UPnP server

func New

func New(ctx context.Context, cnt *content.Content) (upnp *Server, err error)

New creates a new server instance

func (*Server) IncrSystemUpdateID

func (me *Server) IncrSystemUpdateID(count uint32) (exceeded bool)

IncrSystemUpdateID increase state variable SystemUpdateID by count. exceeded is set to true if the maximum allowed value of SystemUpdateID was exceeded. In that case, the system reset procedure as described in the ContentDirectory service spec must be executed

func (*Server) InitStateVariables

func (me *Server) InitStateVariables()

InitStateVariables initializes all state variables

func (*Server) ServiceResetProcedure

func (me *Server) ServiceResetProcedure(ctx context.Context)

ServiceResetProcedure executes the service reset procedure as described in the ContentDirectory service specification

func (*Server) SetContainerUpdateIDs

func (me *Server) SetContainerUpdateIDs(updates string)

SetContainerUpdateIDs set state variable ContainerUpdateIDs to updates

func (*Server) SetServiceResetToken

func (me *Server) SetServiceResetToken()

SetServiceResetToken assigns a new random string to state variable ServiceResetToken

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL