gottdad/main.go
2020-06-14 16:33:03 +02:00

17 lines
317 B
Go

package main
import (
"bufio"
"net"
)
func main() {
conn, err := net.Dial("tcp", "poop.siteop.biz:3977")
failError(err, "net.Dial")
logInfoDebug("Connected to poop.siteop.biz:3977")
// listen for reply
message, _ := bufio.NewReader(conn).ReadString('\n')
logInfoDebug("Message from server: %s", message)
}