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) 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)
Click to show internal directories.
Click to hide internal directories.