摘要: package main import ( "flag" "fmt" "net" ) type Client struct { ServerIp string ServerPort int Name string Conn net.Conn } func NewClient(serverIp str 阅读全文
posted @ 2022-04-06 13:52 柠檬树下少年蓝 阅读(24) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "net" ) type Client struct { ServerIp string ServerPort int Name string Conn net.Conn } func NewClient(serverIp string, se 阅读全文
posted @ 2022-04-06 13:35 柠檬树下少年蓝 阅读(16) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "io" "net" "sync" "time" ) //构件server type Server struct { Ip string Port int //在线用户列表 OnlineMap map[string]*User MapLock 阅读全文
posted @ 2022-04-06 11:17 柠檬树下少年蓝 阅读(23) 评论(0) 推荐(0)