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.

20 lines
256 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.2]")
  12. s := znet.NewServer()
  13. //2 开启服务
  14. s.Serve()
  15. }