Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket struct { Conn net.Conn Data chan interface{} // 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.