17 lines
313 B
Go
17 lines
313 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')
|
|
fmt.Print("Message from server: " + message)
|
|
}
|