Documentation ¶
Index ¶
- func IsIPDenyError(err error) bool
- type DeviceServer
- func (s *DeviceServer) AddServer(name, uuid, root string) string
- func (s *DeviceServer) Close()
- func (s *DeviceServer) Connection() net.Listener
- func (s *DeviceServer) DelServer(uuid string)
- func (s *DeviceServer) DeviceNamespace() string
- func (s *DeviceServer) DeviceURN() string
- func (s *DeviceServer) Init() (err error)
- func (s *DeviceServer) Serve() error
- type UPnPError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIPDenyError ¶
Types ¶
type DeviceServer ¶
type DeviceServer struct { AuthName string MultiDevices []*multiServer DeviceType string SpecVersion scpd.SpecVersion Manufacturer string ServerName string RootDescNamespaces map[string]string UrlPrefix string ServiceList []*service.Controller BeforeRequestHandle func(ctx *fasthttp.RequestCtx) bool AfterRequestHandle func(ctx *fasthttp.RequestCtx) bool ListenInterface *net.Interface ListenPort uint16 AllowIps []*net.IPNet DenyIps []*net.IPNet ErrorHandler ssdp.ErrorHandler InfoHandler ssdp.InfoHandler // contains filtered or unexported fields }
func NewDeviceServer ¶
func NewDeviceServer(ctx context.Context) (s *DeviceServer, err error)
func (*DeviceServer) AddServer ¶
func (s *DeviceServer) AddServer(name, uuid, root string) string
func (*DeviceServer) Close ¶
func (s *DeviceServer) Close()
func (*DeviceServer) Connection ¶
func (s *DeviceServer) Connection() net.Listener
func (*DeviceServer) DelServer ¶
func (s *DeviceServer) DelServer(uuid string)
func (*DeviceServer) DeviceNamespace ¶
func (s *DeviceServer) DeviceNamespace() string
func (*DeviceServer) DeviceURN ¶
func (s *DeviceServer) DeviceURN() string
func (*DeviceServer) Init ¶
func (s *DeviceServer) Init() (err error)
func (*DeviceServer) Serve ¶
func (s *DeviceServer) Serve() error
Click to show internal directories.
Click to hide internal directories.