Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSocketConnection ¶
NewSocketConnection connects to a TCP server at address and returns the TCP connection
func NewSocketListener ¶
func NewSocketListener(port string) (*net.TCPListener, error)
NewSocketListener creates a Listener on a socket on a TCP socket port should be the port to listen to e.g. ":9999" pass the Listener to WaitForConnect
func WaitForSocketConnect ¶
func WaitForSocketConnect(l *net.TCPListener) (*net.TCPConn, error)
WaitForSocketConnect waits for a client to connect to the TCP socket and returns the TCP connection There is no timeout
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.