示例#1
0
func NewDebugConnNoData(conn net.Conn) net.Conn {
	return connRwcer{
		Conn: conn,
		rwc:  kmgIo.NewDebugRwcNoData(conn, "["+kmgDebug.NextIntIdString()+"]["+conn.LocalAddr().String()+"-"+conn.RemoteAddr().String()+"]"),
	}
}
示例#2
0
func NewDebugConn(conn net.Conn, name string) net.Conn {
	return connRwcer{
		Conn: conn,
		rwc:  kmgIo.NewDebugRwc(conn, name+"["+kmgDebug.NextIntIdString()+"]["+conn.LocalAddr().String()+"-"+conn.RemoteAddr().String()+"]"),
	}
}