func NewProtocolInfo(tp transport.Protocol, ct serviceinfo.PayloadCodec) ProtocolInfo {
	return ProtocolInfo{
		TransProto: tp,
		CodecType:  ct,
	}
}
NewProtocolInfo creates a new ProtocolInfo using the given tp and ct.
package remote
import (
	"sync"
	"github.com/cloudwego/kitex/pkg/rpcinfo"
	"github.com/cloudwego/kitex/pkg/serviceinfo"
	"github.com/cloudwego/kitex/transport"
)
var (
	messagePool      sync.Pool
	transInfoPool    sync.Pool
	emptyServiceInfo serviceinfo.ServiceInfo
)
func init() {
	messagePool.New = newMessage
	transInfoPool.New = newTransInfo
}
type MessageType int32
const (
	InvalidMessageType MessageType = 0
	Call               MessageType = 1
	Reply              MessageType = 2
	Exception          MessageType = 3
	Oneway MessageType = 4
	Stream MessageType = 5
)
const (
	ReadFailed string = "RFailed"
	MeshHeader string = "mHeader"
)
var emptyProtocolInfo ProtocolInfo
type ProtocolInfo struct {
	TransProto transport.Protocol
	CodecType  serviceinfo.PayloadCodec
}