nighthawk

package module
v0.0.0-...-a94553d Latest Latest
Warning

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

Go to latest
Published: May 4, 2015 License: Apache-2.0 Imports: 23 Imported by: 0

README

nighthawk

Airplay server in Go.

Documentation

Index

Constants

View Source
const (
	AIRTUNES_PACKET       = 0x80
	AIRTUNES_TIMING_QUERY = 0xd2
	TIMESTAMP_EPOCH       = 0x83aa7e80 << 32 //not sure if this is right... //2208988800

)
View Source
const (
	HTTPProtocolType = "HTTP/1.1"
)
View Source
const (
	RTSPProtocolType = "RTSP/1.0"
)

Variables

This section is empty.

Functions

func Start

func Start(serverName string, delegate airServerInterface)

Start the airplay server. The delegate will contain an interface of stuff to deal with (like audio/video streams, volume controls, etc)

func StartServer

func StartServer(port int, handler func(c *conn)) error

starts the listener and sets up the processing closure

Types

type Client

type Client struct {
	Name    string //the name that the client is reporting
	RTSPUrl string //the RTSP stream URL
	Codec   []byte //The video codec info
	// contains filtered or unexported fields
}

The client struct is used to encapsulate a device (OS X or iOS).

type ConnState

type ConnState int
const (
	StateNew ConnState = iota
	StateActive
	StateIdle
	StateHijacked
	StateClosed
)

type MirrorFeatures

type MirrorFeatures struct {
	Height      int     //height of your screen
	Width       int     //width of your screen
	Overscanned bool    //is the display overscanned?
	RefreshRate float32 //refresh rate 60 Hz (1/60) 0.016666666666666666
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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