Commit 8d4e0d81 authored by gejun's avatar gejun

Patch svn r35203 r35204

parent 7124ac6f
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server asynchronously every 1 second. // A client sending requests to server asynchronously every 1 second.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server every 1 second. If the response does // A client sending requests to server every 1 second. If the response does
// not come back within FLAGS_backup_request_ms, it sends another request // not come back within FLAGS_backup_request_ms, it sends another request
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server sleeping for even-th requests to trigger backup request of client. // A server sleeping for even-th requests to trigger backup request of client.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client to send 2 requests to server and accept the first returned response. // A client to send 2 requests to server and accept the first returned response.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server which will send the request to itself // A client sending requests to server which will send the request to itself
// again according to the field `depth' // again according to the field `depth'
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <gflags/gflags.h> #include <gflags/gflags.h>
#include <base/logging.h> #include <base/logging.h>
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server in parallel by multiple threads. // A client sending requests to server in parallel by multiple threads.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server every 1 second. // A client sending requests to server every 1 second.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server every 1 second. // A client sending requests to server every 1 second.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server every 1 second. // A client sending requests to server every 1 second.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to ubrpc server every 1 second. // A client sending requests to ubrpc server every 1 second.
// This client can access the server in public/baidu-rpc-ub/example/echo_c++_compack_ubrpc as well. // This client can access the server in public/baidu-rpc-ub/example/echo_c++_compack_ubrpc as well.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive requests from ubrpc clients. // A server to receive requests from ubrpc clients.
// This server can be accessed by the client in public/baidu-rpc-ub/example/echo_c++_compack_ubrpc as well. // This server can be accessed by the client in public/baidu-rpc-ub/example/echo_c++_compack_ubrpc as well.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Benchmark http-server by multiple threads. // Benchmark http-server by multiple threads.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// - Access pb services via HTTP // - Access pb services via HTTP
// ./http_client http://db-rpc-dev00.db01.baidu.com:8765/EchoService/Echo -d '{"message":"hello"}' // ./http_client http://db-rpc-dev00.db01.baidu.com:8765/EchoService/Echo -d '{"message":"hello"}'
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive HttpRequest and send back HttpResponse. // A server to receive HttpRequest and send back HttpResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A multi-threaded client getting keys from a memcache server constantly. // A multi-threaded client getting keys from a memcache server constantly.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server by multiple threads. // A client sending requests to server by multiple threads.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to servers(discovered by naming service) by multiple threads. // A client sending requests to servers(discovered by naming service) by multiple threads.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server by multiple threads. // A client sending requests to server by multiple threads.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server every 1 second. // A client sending requests to server every 1 second.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server every 1 second. // A client sending requests to server every 1 second.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server in parallel by multiple threads. // A client sending requests to server in parallel by multiple threads.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server in parallel by multiple threads. // A client sending requests to server in parallel by multiple threads.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A baidu-rpc based command-line interface to talk with redis-server // A baidu-rpc based command-line interface to talk with redis-server
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A multi-threaded client getting keys from a redis-server constantly. // A multi-threaded client getting keys from a redis-server constantly.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server in parallel by multiple threads. // A client sending requests to server in parallel by multiple threads.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server by multiple threads. // A client sending requests to server by multiple threads.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse asynchronously. // A server to receive EchoRequest and send back EchoResponse asynchronously.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A client sending requests to server in batch every 1 second. // A client sending requests to server in batch every 1 second.
......
// Baidu RPC - A framework to host and access services throughout Baidu. // Copyright (c) 2014 baidu-rpc authors.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved //
// // Licensed under the Apache License, Version 2.0 (the "License");
// If you have any problem, contact us: // you may not use this file except in compliance with the License.
// Baidu Hi : group 1296497 // You may obtain a copy of the License at
// Email : pbrpc@baidu.com //
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc // http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A server to receive EchoRequest and send back EchoResponse. // A server to receive EchoRequest and send back EchoResponse.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment