package nsqlookupd
import (
"net"
)
//客户端 结构体
type ClientV1 struct {
net.Conn //客户端连接
peerInfo *PeerInfo //服务端信息结构体
}
func NewClientV1(conn net.Conn) *ClientV1 {
return &ClientV1{
Conn: conn,
}
}
func (c *ClientV1) String() string {
return c.RemoteAddr().String()
}