Documentation
¶
Overview ¶
Package screenhub accepts bounded EPN2 connections for one enrolled display. One ScreenPump owns all EPS2 client state; network workers only authenticate and offer peers. Reconciliation never repeats a physical refresh.
Index ¶
- Variables
- type Config
- type Hub
- func (h *Hub) Changed() <-chan struct{}
- func (h *Hub) Close() error
- func (h *Hub) ConfigurePartial(policy refreshpolicy.Policy) error
- func (h *Hub) ConfigureRefresh(policy refreshpolicy.Policy) error
- func (h *Hub) Offer(ctx context.Context, socket screenpeer.Socket) error
- func (h *Hub) ResetSession()
- func (h *Hub) Send(ctx context.Context, frame display.Frame) error
- func (h *Hub) SendRegion(ctx context.Context, plan screendelivery.RegionPlan, ...) error
- func (h *Hub) SendWithOptions(ctx context.Context, frame display.Frame, options refreshpolicy.Options) error
- func (h *Hub) Serve(ctx context.Context, listener net.Listener) error
- func (h *Hub) WaitReady(ctx context.Context) (screendelivery.Readiness, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ID securetransport.DeviceID
Key securetransport.Key
Size display.Size
Profile uint32
ProfileVersion uint16
}
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) ConfigurePartial ¶
func (h *Hub) ConfigurePartial(policy refreshpolicy.Policy) error
func (*Hub) ConfigureRefresh ¶
func (h *Hub) ConfigureRefresh(policy refreshpolicy.Policy) error
func (*Hub) Offer ¶
Offer authenticates synchronously, for transports that already own acceptance. On failure the socket is closed. Success transfers ownership to the hub.
func (*Hub) ResetSession ¶
func (h *Hub) ResetSession()
ResetSession requires the caller to have invalidated its pixel baseline and resolved any retained cycle first. It cannot itself resend or confirm content.
func (*Hub) SendRegion ¶
func (h *Hub) SendRegion(ctx context.Context, plan screendelivery.RegionPlan, options refreshpolicy.Options) error
func (*Hub) SendWithOptions ¶
Click to show internal directories.
Click to hide internal directories.