comms

package
v2.0.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: GPL-2.0, GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(conn net.Conn, command string) (resp string, err error)

Command is a shortcut to send and receive

func Connect

func Connect(server string) (conn net.Conn)

Connect starts a tcp connection

func Recv

func Recv(conn net.Conn) (status []byte, err error)

Recv gets the next line from the connection

func Send

func Send(conn net.Conn, msg string) (err error)

Send the string to connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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