示例#1
0
func NewNQueensServiceClient(conn io.ReadWriteCloser) *NQueensServiceClient {
	codec := muduorpc.NewClientCodec(conn)
	client := rpc.NewClientWithCodec(codec)
	return &NQueensServiceClient{client}
}
示例#2
0
func NewSudokuServiceClient(conn io.ReadWriteCloser) *SudokuServiceClient {
	codec := muduorpc.NewClientCodec(conn)
	client := rpc.NewClientWithCodec(codec)
	return &SudokuServiceClient{client}
}