You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
229 B
18 lines
229 B
package main
|
|
|
|
import (
|
|
"github.com/aceld/zinx/znet"
|
|
)
|
|
|
|
//Server 模块的测试函数
|
|
func main() {
|
|
|
|
/*
|
|
服务端测试
|
|
*/
|
|
//1 创建一个server 句柄 s
|
|
s := znet.NewServer("[zinx V0.1]")
|
|
|
|
//2 开启服务
|
|
s.Serve()
|
|
}
|