test
This commit is contained in:
parent
004b405a28
commit
0e42a49439
6
main.go
6
main.go
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user