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

  1. package main
  2. import (
  3. "github.com/aceld/zinx/znet"
  4. )
  5. //Server 模块的测试函数
  6. func main() {
  7. /*
  8. 服务端测试
  9. */
  10. //1 创建一个server 句柄 s
  11. s := znet.NewServer("[zinx V0.1]")
  12. //2 开启服务
  13. s.Serve()
  14. }