test: update

This commit is contained in:
fatedier
2017-03-10 00:52:32 +08:00
parent 307b74cc13
commit f83a2a73ab
12 changed files with 53 additions and 115 deletions

View File

@@ -1,27 +0,0 @@
package net
import (
"fmt"
"testing"
)
func TestA(t *testing.T) {
l, err := ListenUDP("0.0.0.0", 9000)
if err != nil {
fmt.Println(err)
}
for {
c, _ := l.Accept()
go func() {
for {
buf := make([]byte, 1450)
n, err := c.Read(buf)
if err != nil {
fmt.Println(buf[:n])
}
c.Write(buf[:n])
}
}()
}
}