Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptOnSocket ¶ added in v0.1.5
func AcceptOnSocket(listener *net.UnixListener) net.Conn
Types ¶
type Socket ¶
type Socket struct { Listener *net.UnixListener Conn net.Conn Data chan interface{} Done chan bool // contains filtered or unexported fields }
func ConnectSocket ¶
func ConnectSocket() *Socket
ConnectSocket is used by the client to connect to the socket the server created for two-way communication
func NewSocket ¶
NewSocket is used by the server command to create a new socket for communication between server and client
func (*Socket) PauseServer ¶ added in v0.4.2
func (s *Socket) PauseServer()
PauseServer sends a state message to indicate the server should pause tracking key presses
func (*Socket) RecvData ¶
func (s *Socket) RecvData()
RecvData handles recieving data on the connection, decoding the message and passing the decoded data to the Data channel (for external processing)
func (*Socket) ResumeServer ¶ added in v0.4.2
func (s *Socket) ResumeServer()
ResumeServer sends a state message to indicate the server should resume tracking key presses
Click to show internal directories.
Click to hide internal directories.