Exemple #1
0
func NewContactSvcClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ContactSvcClient {
	return &ContactSvcClient{Transport: t,
		ProtocolFactory: f,
		InputProtocol:   f.GetProtocol(t),
		OutputProtocol:  f.GetProtocol(t),
		SeqId:           0,
	}
}
Exemple #2
0
func NewProxyTransClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ProxyTransClient {
	return &ProxyTransClient{Transport: t,
		ProtocolFactory: f,
		InputProtocol:   f.GetProtocol(t),
		OutputProtocol:  f.GetProtocol(t),
		SeqId:           0,
	}
}