Skip to content

Commit

Permalink
Patch svn r35203 r35204
Browse files Browse the repository at this point in the history
  • Loading branch information
gejun committed Sep 2, 2017
1 parent 7124ac6 commit 8d4e0d8
Show file tree
Hide file tree
Showing 44 changed files with 572 additions and 308 deletions.
20 changes: 13 additions & 7 deletions example/asynchronous_echo_c++/client.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/asynchronous_echo_c++/server.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/backup_request_c++/client.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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
// not come back within FLAGS_backup_request_ms, it sends another request
Expand Down
20 changes: 13 additions & 7 deletions example/backup_request_c++/server.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/cancel_c++/client.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/cancel_c++/server.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/cascade_echo_c++/client.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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
// again according to the field `depth'
Expand Down
20 changes: 13 additions & 7 deletions example/cascade_echo_c++/server.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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 <base/logging.h>
Expand Down
20 changes: 13 additions & 7 deletions example/dynamic_partition_echo_c++/client.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/dynamic_partition_echo_c++/server.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/echo_c++/client.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/echo_c++/server.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/echo_c++_hulu_pbrpc/client.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/echo_c++_hulu_pbrpc/server.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/echo_c++_sofa_pbrpc/client.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
20 changes: 13 additions & 7 deletions example/echo_c++_sofa_pbrpc/server.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
//
// If you have any problem, contact us:
// Baidu Hi : group 1296497
// Email : [email protected]
// Wiki : http://wiki.baidu.com/display/RPC/baidu-rpc
// Copyright (c) 2014 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.

Expand Down
Loading

0 comments on commit 8d4e0d8

Please sign in to comment.