This commit is contained in:
shoopea 2020-06-14 16:32:21 +02:00
parent 004b405a28
commit 0e42a49439

View File

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