diff --git a/src/brpc/acceptor.cpp b/src/brpc/acceptor.cpp index 5445b14185..b409d5472c 100644 --- a/src/brpc/acceptor.cpp +++ b/src/brpc/acceptor.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Oct 27 17:45:37 2014 +// 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 #include "base/fd_guard.h" // fd_guard diff --git a/src/brpc/acceptor.h b/src/brpc/acceptor.h index e87f219c6a..cb84cb972c 100644 --- a/src/brpc/acceptor.h +++ b/src/brpc/acceptor.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Oct 27 17:34:41 2014 +// 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. #ifndef BRPC_ACCEPTOR_H #define BRPC_ACCEPTOR_H diff --git a/src/brpc/adaptive_connection_type.cpp b/src/brpc/adaptive_connection_type.cpp index 448da1a3e7..40cc5b87b6 100644 --- a/src/brpc/adaptive_connection_type.cpp +++ b/src/brpc/adaptive_connection_type.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Sep 4 12:28:07 CST 2015 +// Copyright (c) 2015 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 "base/logging.h" #include "brpc/adaptive_connection_type.h" diff --git a/src/brpc/adaptive_connection_type.h b/src/brpc/adaptive_connection_type.h index b5ede7f72f..431c39d1d2 100644 --- a/src/brpc/adaptive_connection_type.h +++ b/src/brpc/adaptive_connection_type.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Sep 4 12:28:07 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_ADAPTIVE_CONNECTION_TYPE_H #define BRPC_ADAPTIVE_CONNECTION_TYPE_H diff --git a/src/brpc/adaptive_protocol_type.h b/src/brpc/adaptive_protocol_type.h index cbba54c3d9..c0f758eb18 100644 --- a/src/brpc/adaptive_protocol_type.h +++ b/src/brpc/adaptive_protocol_type.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Sep 4 12:28:07 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_ADAPTIVE_PROTOCOL_TYPE_H #define BRPC_ADAPTIVE_PROTOCOL_TYPE_H diff --git a/src/brpc/amf.cpp b/src/brpc/amf.cpp index ef62af2ede..1edd33a26b 100644 --- a/src/brpc/amf.cpp +++ b/src/brpc/amf.cpp @@ -1,8 +1,16 @@ -// mcpack2pb - Make protobuf be front-end of mcpack/compack -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 27 17:46:12 CST 2016 +// Copyright (c) 2016 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 #include "base/sys_byteorder.h" diff --git a/src/brpc/amf.h b/src/brpc/amf.h index 84575d1bd1..a8780cc240 100644 --- a/src/brpc/amf.h +++ b/src/brpc/amf.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: Ge,Jun (gejun@baidu.com) -// Date: Wed Apr 27 17:46:12 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_AMF_H #define BRPC_AMF_H diff --git a/src/brpc/amf_inl.h b/src/brpc/amf_inl.h index 454cbb4798..f31f9f3067 100644 --- a/src/brpc/amf_inl.h +++ b/src/brpc/amf_inl.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: Ge,Jun (gejun@baidu.com) -// Date: Wed Apr 27 17:46:12 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_AMF_INL_H #define BRPC_AMF_INL_H diff --git a/src/brpc/authenticator.h b/src/brpc/authenticator.h index ff9ea6c6b2..195e9126e9 100644 --- a/src/brpc/authenticator.h +++ b/src/brpc/authenticator.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sat Nov 1 16:05:55 2014 +// 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. #ifndef BRPC_AUTHENTICATOR_H #define BRPC_AUTHENTICATOR_H diff --git a/src/brpc/builtin/bad_method_service.cpp b/src/brpc/builtin/bad_method_service.cpp index 53d7762adc..6ae2a40abe 100644 --- a/src/brpc/builtin/bad_method_service.cpp +++ b/src/brpc/builtin/bad_method_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 16:28:56 2015 +// Copyright (c) 2015 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 #include diff --git a/src/brpc/builtin/bad_method_service.h b/src/brpc/builtin/bad_method_service.h index de944aeca2..06c9421da1 100644 --- a/src/brpc/builtin/bad_method_service.h +++ b/src/brpc/builtin/bad_method_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 16:27:41 2015 +// Copyright (c) 2015 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. #ifndef BRPC_BADMETHOD_SERVICE_H #define BRPC_BADMETHOD_SERVICE_H diff --git a/src/brpc/builtin/bthreads_service.cpp b/src/brpc/builtin/bthreads_service.cpp index bfa3aeb1f9..64d00773f9 100644 --- a/src/brpc/builtin/bthreads_service.cpp +++ b/src/brpc/builtin/bthreads_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jun 2 16:28:03 CST 2015 +// Copyright (c) 2015 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 #include "brpc/closure_guard.h" // ClosureGuard diff --git a/src/brpc/builtin/bthreads_service.h b/src/brpc/builtin/bthreads_service.h index e35ba19f54..16340e640b 100644 --- a/src/brpc/builtin/bthreads_service.h +++ b/src/brpc/builtin/bthreads_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jun 2 16:28:03 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_BTHREADS_SERVICE_H #define BRPC_BTHREADS_SERVICE_H diff --git a/src/brpc/builtin/common.cpp b/src/brpc/builtin/common.cpp index bbdffb3806..c2e09011c4 100644 --- a/src/brpc/builtin/common.cpp +++ b/src/brpc/builtin/common.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 17:01:10 2015 +// Copyright (c) 2015 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 #include diff --git a/src/brpc/builtin/common.h b/src/brpc/builtin/common.h index 350597a324..f3404e3939 100644 --- a/src/brpc/builtin/common.h +++ b/src/brpc/builtin/common.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 16:56:55 2015 +// Copyright (c) 2015 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. #ifndef BRPC_BUILTIN_COMMON_H #define BRPC_BUILTIN_COMMON_H diff --git a/src/brpc/builtin/connections_service.cpp b/src/brpc/builtin/connections_service.cpp index ae971cdd16..1972db0952 100644 --- a/src/brpc/builtin/connections_service.cpp +++ b/src/brpc/builtin/connections_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 18:18:06 2015 +// Copyright (c) 2015 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 #include diff --git a/src/brpc/builtin/connections_service.h b/src/brpc/builtin/connections_service.h index b13dc112cf..91ad354230 100644 --- a/src/brpc/builtin/connections_service.h +++ b/src/brpc/builtin/connections_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 18:07:12 2015 +// Copyright (c) 2015 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. #ifndef BRPC_CONNECTIONS_SERVICE_H #define BRPC_CONNECTIONS_SERVICE_H diff --git a/src/brpc/builtin/dir_service.cpp b/src/brpc/builtin/dir_service.cpp index 9d32494a25..24dac0f93f 100644 --- a/src/brpc/builtin/dir_service.cpp +++ b/src/brpc/builtin/dir_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Apr 9 17:05:25 2015 +// Copyright (c) 2015 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 #include // opendir diff --git a/src/brpc/builtin/dir_service.h b/src/brpc/builtin/dir_service.h index 8cbe5a15ba..6f50f018fd 100644 --- a/src/brpc/builtin/dir_service.h +++ b/src/brpc/builtin/dir_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 16:27:41 2015 +// Copyright (c) 2015 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. #ifndef BRPC_DIR_SERVICE_H #define BRPC_DIR_SERVICE_H diff --git a/src/brpc/builtin/flags_service.cpp b/src/brpc/builtin/flags_service.cpp index 44abe9c788..32fc34a57d 100644 --- a/src/brpc/builtin/flags_service.cpp +++ b/src/brpc/builtin/flags_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 16:28:56 2015 +// Copyright (c) 2015 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 #include // std::vector diff --git a/src/brpc/builtin/flags_service.h b/src/brpc/builtin/flags_service.h index d1463583f2..c2dfde1628 100644 --- a/src/brpc/builtin/flags_service.h +++ b/src/brpc/builtin/flags_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 16:27:41 2015 +// Copyright (c) 2015 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. #ifndef BRPC_FLAGS_SERVICE_H #define BRPC_FLAGS_SERVICE_H diff --git a/src/brpc/builtin/flot_min_js.cpp b/src/brpc/builtin/flot_min_js.cpp index e826dbdfc4..98592d5b77 100644 --- a/src/brpc/builtin/flot_min_js.cpp +++ b/src/brpc/builtin/flot_min_js.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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 #include "base/logging.h" diff --git a/src/brpc/builtin/flot_min_js.h b/src/brpc/builtin/flot_min_js.h index 8e622a86e0..45466da5c2 100644 --- a/src/brpc/builtin/flot_min_js.h +++ b/src/brpc/builtin/flot_min_js.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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. #ifndef BRPC_BUILTIN_FLOT_MIN_JS_H #define BRPC_BUILTIN_FLOT_MIN_JS_H diff --git a/src/brpc/builtin/get_favicon_service.cpp b/src/brpc/builtin/get_favicon_service.cpp index 5f2e419f5f..7561acd685 100644 --- a/src/brpc/builtin/get_favicon_service.cpp +++ b/src/brpc/builtin/get_favicon_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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 "base/macros.h" // ARRAY_SIZE #include "base/iobuf.h" // base::IOBuf diff --git a/src/brpc/builtin/get_favicon_service.h b/src/brpc/builtin/get_favicon_service.h index 8e7a63858c..172b239378 100644 --- a/src/brpc/builtin/get_favicon_service.h +++ b/src/brpc/builtin/get_favicon_service.h @@ -1,9 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// File: get_favicon_service.h -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:54:42 +// 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. #ifndef BRPC_GET_FAVICON_SERVICE_H #define BRPC_GET_FAVICON_SERVICE_H diff --git a/src/brpc/builtin/get_js_service.cpp b/src/brpc/builtin/get_js_service.cpp index b9125d7f09..cc777dc4d5 100644 --- a/src/brpc/builtin/get_js_service.cpp +++ b/src/brpc/builtin/get_js_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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 "base/macros.h" // ARRAY_SIZE #include "base/iobuf.h" // base::IOBuf diff --git a/src/brpc/builtin/get_js_service.h b/src/brpc/builtin/get_js_service.h index 0ff1b9f6ce..8520e9a433 100644 --- a/src/brpc/builtin/get_js_service.h +++ b/src/brpc/builtin/get_js_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:54:42 +// 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. #ifndef BRPC_GET_JAVASCRIPT_SERVICE_H #define BRPC_GET_JAVASCRIPT_SERVICE_H diff --git a/src/brpc/builtin/health_service.cpp b/src/brpc/builtin/health_service.cpp index f68d84086d..2d7301682d 100644 --- a/src/brpc/builtin/health_service.cpp +++ b/src/brpc/builtin/health_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:28:43 +// 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 // std::vector #include "brpc/controller.h" // Controller diff --git a/src/brpc/builtin/health_service.h b/src/brpc/builtin/health_service.h index 48081a0435..addbbdb674 100644 --- a/src/brpc/builtin/health_service.h +++ b/src/brpc/builtin/health_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:15:57 +// 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. #ifndef BRPC_HEALTH_SERVICE_H #define BRPC_HEALTH_SERVICE_H diff --git a/src/brpc/builtin/hotspots_service.cpp b/src/brpc/builtin/hotspots_service.cpp index d3346e7e3d..a8dca633cd 100644 --- a/src/brpc/builtin/hotspots_service.cpp +++ b/src/brpc/builtin/hotspots_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Sep 25 11:10:03 CST 2015 +// Copyright (c) 2015 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 #include diff --git a/src/brpc/builtin/hotspots_service.h b/src/brpc/builtin/hotspots_service.h index e1517105d2..907d4bb3be 100644 --- a/src/brpc/builtin/hotspots_service.h +++ b/src/brpc/builtin/hotspots_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Sep 25 11:10:03 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_HOTSPOTS_SERVICE_H #define BRPC_HOTSPOTS_SERVICE_H diff --git a/src/brpc/builtin/ids_service.cpp b/src/brpc/builtin/ids_service.cpp index c2f70a8fcc..c05c1d1c9d 100644 --- a/src/brpc/builtin/ids_service.cpp +++ b/src/brpc/builtin/ids_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jun 2 16:28:03 CST 2015 +// Copyright (c) 2015 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 #include "brpc/closure_guard.h" // ClosureGuard diff --git a/src/brpc/builtin/ids_service.h b/src/brpc/builtin/ids_service.h index deb4e08f8c..a879cdbac6 100644 --- a/src/brpc/builtin/ids_service.h +++ b/src/brpc/builtin/ids_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jun 2 16:28:03 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_IDS_SERVICE_H #define BRPC_IDS_SERVICE_H diff --git a/src/brpc/builtin/index_service.cpp b/src/brpc/builtin/index_service.cpp index f760263970..784946329d 100644 --- a/src/brpc/builtin/index_service.cpp +++ b/src/brpc/builtin/index_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:28:43 +// 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 // DECLARE_xxx #include diff --git a/src/brpc/builtin/index_service.h b/src/brpc/builtin/index_service.h index 8124a9edf7..5815a8f598 100644 --- a/src/brpc/builtin/index_service.h +++ b/src/brpc/builtin/index_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:15:57 +// 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. #ifndef BRPC_INDEX_SERVICE_H #define BRPC_INDEX_SERVICE_H diff --git a/src/brpc/builtin/jquery_min_js.cpp b/src/brpc/builtin/jquery_min_js.cpp index a8cda6b060..3e60912384 100644 --- a/src/brpc/builtin/jquery_min_js.cpp +++ b/src/brpc/builtin/jquery_min_js.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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 #include "base/logging.h" diff --git a/src/brpc/builtin/jquery_min_js.h b/src/brpc/builtin/jquery_min_js.h index 4a5932ed91..5c1057bbae 100644 --- a/src/brpc/builtin/jquery_min_js.h +++ b/src/brpc/builtin/jquery_min_js.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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. #ifndef BRPC_BUILTIN_JQUERY_MIN_JS_H #define BRPC_BUILTIN_JQUERY_MIN_JS_H diff --git a/src/brpc/builtin/list_service.cpp b/src/brpc/builtin/list_service.cpp index 33efb556a3..a277be9c24 100644 --- a/src/brpc/builtin/list_service.cpp +++ b/src/brpc/builtin/list_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:28:43 +// 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 // std::vector #include // ServiceDescriptor diff --git a/src/brpc/builtin/list_service.h b/src/brpc/builtin/list_service.h index e66f5c3c55..66e38eac82 100644 --- a/src/brpc/builtin/list_service.h +++ b/src/brpc/builtin/list_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:15:57 +// 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. #ifndef BRPC_LIST_SERVICE_H #define BRPC_LIST_SERVICE_H diff --git a/src/brpc/builtin/pprof_perl.cpp b/src/brpc/builtin/pprof_perl.cpp index eefb800358..212e99e40d 100644 --- a/src/brpc/builtin/pprof_perl.cpp +++ b/src/brpc/builtin/pprof_perl.cpp @@ -1,14 +1,3 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 02 Thu Sep 24 23:47:08 CST 2015 - -#include "brpc/builtin/pprof_perl.h" - - -namespace brpc { - // Copyright (c) 1998-2007, Google Inc. // All rights reserved. // @@ -25,7 +14,6 @@ namespace brpc { // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. -// // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -38,6 +26,10 @@ namespace brpc { // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include "brpc/builtin/pprof_perl.h" + +namespace brpc { + const char* pprof_perl() { return "#! /usr/bin/env perl\n" "use strict;\n" diff --git a/src/brpc/builtin/pprof_perl.h b/src/brpc/builtin/pprof_perl.h index 4e5efd925a..a7f8024599 100644 --- a/src/brpc/builtin/pprof_perl.h +++ b/src/brpc/builtin/pprof_perl.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 02 Thu Sep 24 23:47:08 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_BUILTIN_PPROF_PERL_H #define BRPC_BUILTIN_PPROF_PERL_H diff --git a/src/brpc/builtin/pprof_service.cpp b/src/brpc/builtin/pprof_service.cpp index d9211fdbdc..26e38a7507 100644 --- a/src/brpc/builtin/pprof_service.cpp +++ b/src/brpc/builtin/pprof_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Dec 3 15:08:36 CST 2014 +// 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 // strftime #include diff --git a/src/brpc/builtin/pprof_service.h b/src/brpc/builtin/pprof_service.h index b3bcff37d4..35ecb438fd 100644 --- a/src/brpc/builtin/pprof_service.h +++ b/src/brpc/builtin/pprof_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Dec 3 15:08:36 CST 2014 +// 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. #ifndef BRPC_PPROF_SERVICE_H #define BRPC_PPROF_SERVICE_H diff --git a/src/brpc/builtin/protobufs_service.cpp b/src/brpc/builtin/protobufs_service.cpp index b8ab684183..14e11bc09f 100644 --- a/src/brpc/builtin/protobufs_service.cpp +++ b/src/brpc/builtin/protobufs_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 14 12:58:35 CST 2015 +// Copyright (c) 2015 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 // ServiceDescriptor #include "brpc/controller.h" // Controller diff --git a/src/brpc/builtin/protobufs_service.h b/src/brpc/builtin/protobufs_service.h index 3d5e32ad98..63bcca234b 100644 --- a/src/brpc/builtin/protobufs_service.h +++ b/src/brpc/builtin/protobufs_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 14 12:58:35 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_PROTOBUFS_SERVICE_H #define BRPC_PROTOBUFS_SERVICE_H diff --git a/src/brpc/builtin/rpcz_service.cpp b/src/brpc/builtin/rpcz_service.cpp index 682684e228..69452b1e0a 100644 --- a/src/brpc/builtin/rpcz_service.cpp +++ b/src/brpc/builtin/rpcz_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 18:18:06 2015 +// Copyright (c) 2015 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 #include diff --git a/src/brpc/builtin/rpcz_service.h b/src/brpc/builtin/rpcz_service.h index 4c7ba07911..52b1b34319 100644 --- a/src/brpc/builtin/rpcz_service.h +++ b/src/brpc/builtin/rpcz_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 18:07:12 2015 +// Copyright (c) 2015 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. #ifndef BRPC_RPCZ_SERVICE_H #define BRPC_RPCZ_SERVICE_H diff --git a/src/brpc/builtin/sockets_service.cpp b/src/brpc/builtin/sockets_service.cpp index bca87a9407..b163c4bbb6 100644 --- a/src/brpc/builtin/sockets_service.cpp +++ b/src/brpc/builtin/sockets_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jun 2 16:28:03 CST 2015 +// Copyright (c) 2015 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 #include "brpc/closure_guard.h" // ClosureGuard diff --git a/src/brpc/builtin/sockets_service.h b/src/brpc/builtin/sockets_service.h index fada4bb317..244159998f 100644 --- a/src/brpc/builtin/sockets_service.h +++ b/src/brpc/builtin/sockets_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jun 2 16:28:03 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_SOCKETS_SERVICE_H #define BRPC_SOCKETS_SERVICE_H diff --git a/src/brpc/builtin/sorttable_js.cpp b/src/brpc/builtin/sorttable_js.cpp index 49d65dddaa..24f3bcb1a9 100644 --- a/src/brpc/builtin/sorttable_js.cpp +++ b/src/brpc/builtin/sorttable_js.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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 #include "brpc/builtin/sorttable_js.h" diff --git a/src/brpc/builtin/sorttable_js.h b/src/brpc/builtin/sorttable_js.h index 144eae4cd8..f1b1688e43 100644 --- a/src/brpc/builtin/sorttable_js.h +++ b/src/brpc/builtin/sorttable_js.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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. #ifndef BRPC_BUILTIN_SORTTABLE_JS_H #define BRPC_BUILTIN_SORTTABLE_JS_H diff --git a/src/brpc/builtin/status_service.cpp b/src/brpc/builtin/status_service.cpp index a0d5d25596..dc4318cd72 100644 --- a/src/brpc/builtin/status_service.cpp +++ b/src/brpc/builtin/status_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:28:43 +// 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 #include // ServiceDescriptor diff --git a/src/brpc/builtin/status_service.h b/src/brpc/builtin/status_service.h index 521d057766..c85d5a5c3f 100644 --- a/src/brpc/builtin/status_service.h +++ b/src/brpc/builtin/status_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:15:57 +// 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. #ifndef BRPC_STATUS_SERVICE_H #define BRPC_STATUS_SERVICE_H diff --git a/src/brpc/builtin/tabbed.h b/src/brpc/builtin/tabbed.h index 07c259e052..793c72d8d1 100644 --- a/src/brpc/builtin/tabbed.h +++ b/src/brpc/builtin/tabbed.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Dec 21 16:49:11 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_BUILTIN_TABBED_H #define BRPC_BUILTIN_TABBED_H @@ -64,7 +72,6 @@ class TabInfoList { // os << ""; // } // } -// // Note: don't forget the jquery. class Tabbed { public: diff --git a/src/brpc/builtin/threads_service.cpp b/src/brpc/builtin/threads_service.cpp index 3a8129a301..1731c611e1 100644 --- a/src/brpc/builtin/threads_service.cpp +++ b/src/brpc/builtin/threads_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:28:43 +// 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 "base/time.h" #include "base/logging.h" diff --git a/src/brpc/builtin/threads_service.h b/src/brpc/builtin/threads_service.h index 038f215a87..ab65af8315 100644 --- a/src/brpc/builtin/threads_service.h +++ b/src/brpc/builtin/threads_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:15:57 +// 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. #ifndef BRPC_THREADS_SERVICE_H #define BRPC_THREADS_SERVICE_H diff --git a/src/brpc/builtin/vars_service.cpp b/src/brpc/builtin/vars_service.cpp index 4d99dbe382..657dbd1f41 100644 --- a/src/brpc/builtin/vars_service.cpp +++ b/src/brpc/builtin/vars_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 18:08:16 2015 +// Copyright (c) 2015 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 #include // std::vector diff --git a/src/brpc/builtin/vars_service.h b/src/brpc/builtin/vars_service.h index 9a01a11b8a..2fc77adfab 100644 --- a/src/brpc/builtin/vars_service.h +++ b/src/brpc/builtin/vars_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 8 18:07:12 2015 +// Copyright (c) 2015 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. #ifndef BRPC_VARS_SERVICE_H #define BRPC_VARS_SERVICE_H diff --git a/src/brpc/builtin/version_service.cpp b/src/brpc/builtin/version_service.cpp index 8323988b73..b4126e2b29 100644 --- a/src/brpc/builtin/version_service.cpp +++ b/src/brpc/builtin/version_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:28:43 +// 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 "brpc/controller.h" // Controller #include "brpc/server.h" // Server diff --git a/src/brpc/builtin/version_service.h b/src/brpc/builtin/version_service.h index a0a212b8a6..d032e03b35 100644 --- a/src/brpc/builtin/version_service.h +++ b/src/brpc/builtin/version_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:15:57 +// 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. #ifndef BRPC_VERSION_SERVICE_H #define BRPC_VERSION_SERVICE_H diff --git a/src/brpc/builtin/viz_min_js.cpp b/src/brpc/builtin/viz_min_js.cpp index a6ae719e02..0c9b54e758 100644 --- a/src/brpc/builtin/viz_min_js.cpp +++ b/src/brpc/builtin/viz_min_js.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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 #include "base/logging.h" diff --git a/src/brpc/builtin/viz_min_js.h b/src/brpc/builtin/viz_min_js.h index cfa017f23b..c6387e7506 100644 --- a/src/brpc/builtin/viz_min_js.h +++ b/src/brpc/builtin/viz_min_js.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/30 15:57:02 +// 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. #ifndef BRPC_BUILTIN_VIZ_MIN_JS_H #define BRPC_BUILTIN_VIZ_MIN_JS_H diff --git a/src/brpc/builtin/vlog_service.cpp b/src/brpc/builtin/vlog_service.cpp index a7dc1f951e..f6cd3b8941 100644 --- a/src/brpc/builtin/vlog_service.cpp +++ b/src/brpc/builtin/vlog_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:28:43 +// 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 "brpc/log.h" #include "brpc/controller.h" // Controller diff --git a/src/brpc/builtin/vlog_service.h b/src/brpc/builtin/vlog_service.h index 93f1d583a2..9b74ef8e37 100644 --- a/src/brpc/builtin/vlog_service.h +++ b/src/brpc/builtin/vlog_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/06 15:15:57 +// 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. #ifndef BRPC_VLOG_SERVICE_H #define BRPC_VLOG_SERVICE_H diff --git a/src/brpc/callback.h b/src/brpc/callback.h index ddf5728ba5..eeff5cd541 100644 --- a/src/brpc/callback.h +++ b/src/brpc/callback.h @@ -1,14 +1,3 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Feb 16 18:35:41 CST 2016 - -#ifndef BRPC_CALLBACK_H -#define BRPC_CALLBACK_H - -#include // Closure - // The code in this file is modified from google/protobuf/stubs/common.h // in protobuf-2.4, mainly for creating closures. We need to separate // the code because protobuf 3.0 moves NewCallback into internal namespace. @@ -17,6 +6,11 @@ // code breaks in protobuf 3.0, they can simply replace // google::protobuf::NewCallback with brpc::NewCallback. +#ifndef BRPC_CALLBACK_H +#define BRPC_CALLBACK_H + +#include // Closure + namespace brpc { // Abstract interface for a callback. When calling an RPC, you must provide diff --git a/src/brpc/channel.cpp b/src/brpc/channel.cpp index 58e16b0c3d..66a759cb7c 100644 --- a/src/brpc/channel.cpp +++ b/src/brpc/channel.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 22 23:01:30 CST 2014 +// 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 #include diff --git a/src/brpc/channel.h b/src/brpc/channel.h index cb5fe65691..edc4813693 100644 --- a/src/brpc/channel.h +++ b/src/brpc/channel.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 16:27:49 CST 2014 +// 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. #ifndef BRPC_CHANNEL_H #define BRPC_CHANNEL_H diff --git a/src/brpc/channel_base.h b/src/brpc/channel_base.h index 778f0563e4..5f72d92492 100644 --- a/src/brpc/channel_base.h +++ b/src/brpc/channel_base.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 16:27:49 CST 2014 +// 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. #ifndef BRPC_CHANNEL_BASE_H #define BRPC_CHANNEL_BASE_H diff --git a/src/brpc/closure_guard.h b/src/brpc/closure_guard.h index 6c65998c67..7425cc97c6 100644 --- a/src/brpc/closure_guard.h +++ b/src/brpc/closure_guard.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Dec 3 11:43:24 CST 2014 +// 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. #ifndef BRPC_CLOSURE_GUARD_H #define BRPC_CLOSURE_GUARD_H diff --git a/src/brpc/compress.cpp b/src/brpc/compress.cpp index 70b3ea1e99..f9c44ba91c 100644 --- a/src/brpc/compress.cpp +++ b/src/brpc/compress.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Oct 27 14:03:53 2014 +// 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 "base/logging.h" #include "brpc/compress.h" diff --git a/src/brpc/compress.h b/src/brpc/compress.h index 25aba5c322..e66c283234 100644 --- a/src/brpc/compress.h +++ b/src/brpc/compress.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Oct 27 14:02:49 2014 +// 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. #ifndef BRPC_COMPRESS_H #define BRPC_COMPRESS_H diff --git a/src/brpc/controller.cpp b/src/brpc/controller.cpp index 8aad5e3d73..44cf2216eb 100644 --- a/src/brpc/controller.cpp +++ b/src/brpc/controller.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 16:27:49 CST 2014 +// 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 #include diff --git a/src/brpc/controller.h b/src/brpc/controller.h index 937b49dfc2..ef2ece7b1b 100644 --- a/src/brpc/controller.h +++ b/src/brpc/controller.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 16:27:49 CST 2014 +// 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. #ifndef BRPC_CONTROLLER_H #define BRPC_CONTROLLER_H diff --git a/src/brpc/data_factory.h b/src/brpc/data_factory.h index 03fb15def7..21f182204d 100644 --- a/src/brpc/data_factory.h +++ b/src/brpc/data_factory.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Oct 13 18:44:28 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_DATA_FACTORY_H #define BRPC_DATA_FACTORY_H diff --git a/src/brpc/describable.h b/src/brpc/describable.h index 992f7a2ab6..08b8b0377a 100644 --- a/src/brpc/describable.h +++ b/src/brpc/describable.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Dec 31 21:51:29 CST 2014 +// 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. #ifndef BRPC_DESCRIBABLE_H #define BRPC_DESCRIBABLE_H diff --git a/src/brpc/destroyable.h b/src/brpc/destroyable.h index 85e1a2b9cd..1af5fef8af 100644 --- a/src/brpc/destroyable.h +++ b/src/brpc/destroyable.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Nov 18 14:00:06 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_DESTROYABLE_H #define BRPC_DESTROYABLE_H diff --git a/src/brpc/details/controller_private_accessor.h b/src/brpc/details/controller_private_accessor.h index 7b03a38ad1..fbc5a77e17 100644 --- a/src/brpc/details/controller_private_accessor.h +++ b/src/brpc/details/controller_private_accessor.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Dec 23 15:53:51 2014 +// 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. #ifndef BRPC_CONTROLLER_PRIVATE_ACCESSOR_H #define BRPC_CONTROLLER_PRIVATE_ACCESSOR_H diff --git a/src/brpc/details/has_epollrdhup.cpp b/src/brpc/details/has_epollrdhup.cpp index e6571aac01..b7d13e106b 100644 --- a/src/brpc/details/has_epollrdhup.cpp +++ b/src/brpc/details/has_epollrdhup.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 14 22:04:41 CST 2014 +// 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 // epoll_create #include // socketpair diff --git a/src/brpc/details/has_epollrdhup.h b/src/brpc/details/has_epollrdhup.h index 6842d90d91..26e2301ccd 100644 --- a/src/brpc/details/has_epollrdhup.h +++ b/src/brpc/details/has_epollrdhup.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 14 22:04:41 CST 2014 +// 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. #ifndef BRPC_HAS_EPOLLRDHUP_H #define BRPC_HAS_EPOLLRDHUP_H diff --git a/src/brpc/details/hpack-static-table.h b/src/brpc/details/hpack-static-table.h index 4be082f37a..49a0fa8e81 100644 --- a/src/brpc/details/hpack-static-table.h +++ b/src/brpc/details/hpack-static-table.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2017 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2017/04/19 17:03:26 +// Copyright (c) 2017 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. // Intentionally no header guard diff --git a/src/brpc/details/hpack.cpp b/src/brpc/details/hpack.cpp index 15a9d1c12e..cd5b4eec36 100644 --- a/src/brpc/details/hpack.cpp +++ b/src/brpc/details/hpack.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2017 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2017/04/19 17:03:26 +// Copyright (c) 2017 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 "brpc/details/hpack.h" @@ -746,7 +754,7 @@ ssize_t HPacker::Decode(base::IOBufBytesIterator& iter, Header* h) { case 2: // (001x) Dynamic Table Size Update // https://tools.ietf.org/html/rfc7541#section-6.3 - LOG(ERROR) << "Not supports dynamic table size update"; + LOG(ERROR) << "Not support dynamic table size update"; return -1; case 1: // (0001) Literal Header Field Never Indexed diff --git a/src/brpc/details/hpack.h b/src/brpc/details/hpack.h index 7c2e9aa313..cab86c29c1 100644 --- a/src/brpc/details/hpack.h +++ b/src/brpc/details/hpack.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2017 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2017/04/19 14:48:53 +// Copyright (c) 2017 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. #ifndef BRPC_HPACK_H #define BRPC_HPACK_H @@ -60,7 +68,6 @@ class IndexTable; // HPACK - Header compression algorithm for http2 (rfc7541) // http://httpwg.org/specs/rfc7541.html -// // Note: Name of header is assumed to be in *lowercase* acoording to // https://tools.ietf.org/html/rfc7540#section-8.1.2 // Just as in HTTP/1.x, header field names are strings of ASCII @@ -68,10 +75,8 @@ class IndexTable; // header field names *MUST* be converted to lowercase prior to their // encoding in HTTP/2. A request or response containing uppercase // header field names MUST be treated as malformed -// // Not supported methods: // - Resize dynamic table. -// class HPacker { public: struct Header { diff --git a/src/brpc/details/http_message.cpp b/src/brpc/details/http_message.cpp index 5a5e16f802..7fa99e630e 100644 --- a/src/brpc/details/http_message.cpp +++ b/src/brpc/details/http_message.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/22 22:45:41 +// 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 @@ -594,7 +602,6 @@ void SerializeHttpRequest(base::IOBuf* request, // | entity-header ) CRLF) ; Section 7.1 // CRLF // [ message-body ] ; Section 7.2 -// // Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF void SerializeHttpResponse(base::IOBuf* response, HttpHeader* h, diff --git a/src/brpc/details/http_message.h b/src/brpc/details/http_message.h index 6a9bae34f3..de85123284 100644 --- a/src/brpc/details/http_message.h +++ b/src/brpc/details/http_message.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date 2014/10/22 15:12:46 +// 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. #ifndef BRPC_HTTP_MESSAGE_H #define BRPC_HTTP_MESSAGE_H diff --git a/src/brpc/details/load_balancer_with_naming.cpp b/src/brpc/details/load_balancer_with_naming.cpp index 927ab58559..28cabffcf0 100644 --- a/src/brpc/details/load_balancer_with_naming.cpp +++ b/src/brpc/details/load_balancer_with_naming.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Mar 4 10:49:35 2015 +// Copyright (c) 2015 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 "brpc/details/load_balancer_with_naming.h" diff --git a/src/brpc/details/load_balancer_with_naming.h b/src/brpc/details/load_balancer_with_naming.h index bad0f0cabd..402ff496bd 100644 --- a/src/brpc/details/load_balancer_with_naming.h +++ b/src/brpc/details/load_balancer_with_naming.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Mar 3 16:30:03 2015 +// Copyright (c) 2015 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. #ifndef BRPC_LOAD_BALANCER_WITH_NAMING_H #define BRPC_LOAD_BALANCER_WITH_NAMING_H diff --git a/src/brpc/details/method_status.cpp b/src/brpc/details/method_status.cpp index 023727e7ff..4cc3315515 100644 --- a/src/brpc/details/method_status.cpp +++ b/src/brpc/details/method_status.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/03/20 17:44:29 +// Copyright (c) 2015 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 #include "base/macros.h" diff --git a/src/brpc/details/method_status.h b/src/brpc/details/method_status.h index 1d728066c9..6c172852e6 100644 --- a/src/brpc/details/method_status.h +++ b/src/brpc/details/method_status.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/03/20 17:43:39 +// Copyright (c) 2015 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. #ifndef BRPC_METHOD_STATUS_H #define BRPC_METHOD_STATUS_H diff --git a/src/brpc/details/naming_service_thread.cpp b/src/brpc/details/naming_service_thread.cpp index 9d837ff6f7..60f1565c48 100644 --- a/src/brpc/details/naming_service_thread.cpp +++ b/src/brpc/details/naming_service_thread.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 20:02:37 CST 2014 +// 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 #include diff --git a/src/brpc/details/naming_service_thread.h b/src/brpc/details/naming_service_thread.h index 0a642aa754..f30ef43691 100644 --- a/src/brpc/details/naming_service_thread.h +++ b/src/brpc/details/naming_service_thread.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 20:02:37 CST 2014 +// 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. #ifndef BRPC_NAMING_SERVICE_THREAD_H #define BRPC_NAMING_SERVICE_THREAD_H diff --git a/src/brpc/details/profiler_linker.h b/src/brpc/details/profiler_linker.h index d7e2030180..3ab98e7122 100644 --- a/src/brpc/details/profiler_linker.h +++ b/src/brpc/details/profiler_linker.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 16:27:49 CST 2014 +// 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. #ifndef BRPC_PROFILER_LINKER_H #define BRPC_PROFILER_LINKER_H diff --git a/src/brpc/details/rtmp_utils.cpp b/src/brpc/details/rtmp_utils.cpp index 94092e5d56..2dd9e81ce6 100644 --- a/src/brpc/details/rtmp_utils.cpp +++ b/src/brpc/details/rtmp_utils.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 18 11:19:44 CST 2016 +// Copyright (c) 2016 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 "brpc/details/rtmp_utils.h" diff --git a/src/brpc/details/rtmp_utils.h b/src/brpc/details/rtmp_utils.h index 13f7fbf77a..ded8088235 100644 --- a/src/brpc/details/rtmp_utils.h +++ b/src/brpc/details/rtmp_utils.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 18 11:19:44 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_DETAILS_RTMP_UTILS_H #define BRPC_DETAILS_RTMP_UTILS_H diff --git a/src/brpc/details/server_private_accessor.h b/src/brpc/details/server_private_accessor.h index ec2017ed9e..4a4c4845fa 100644 --- a/src/brpc/details/server_private_accessor.h +++ b/src/brpc/details/server_private_accessor.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jan 13 16:09:25 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_SERVER_PRIVATE_ACCESSOR_H #define BRPC_SERVER_PRIVATE_ACCESSOR_H diff --git a/src/brpc/details/sparse_minute_counter.h b/src/brpc/details/sparse_minute_counter.h index c1d61edb27..4ebe094503 100644 --- a/src/brpc/details/sparse_minute_counter.h +++ b/src/brpc/details/sparse_minute_counter.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Mar 5 23:50:23 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_SPARSE_MINUTE_COUNTER_H #define BRPC_SPARSE_MINUTE_COUNTER_H diff --git a/src/brpc/details/ssl_helper.cpp b/src/brpc/details/ssl_helper.cpp index 2ad065c19d..04adddd0c3 100644 --- a/src/brpc/details/ssl_helper.cpp +++ b/src/brpc/details/ssl_helper.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jul 21 15:05:44 2015 +// Copyright (c) 2015 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 // recv #include diff --git a/src/brpc/details/ssl_helper.h b/src/brpc/details/ssl_helper.h index 391bfde32f..8f912e6ac4 100644 --- a/src/brpc/details/ssl_helper.h +++ b/src/brpc/details/ssl_helper.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jul 21 15:04:37 2015 +// Copyright (c) 2015 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. #ifndef BRPC_SSL_HELPER_H #define BRPC_SSL_HELPER_H diff --git a/src/brpc/details/usercode_backup_pool.cpp b/src/brpc/details/usercode_backup_pool.cpp index 380bae609c..a4e48b30ad 100644 --- a/src/brpc/details/usercode_backup_pool.cpp +++ b/src/brpc/details/usercode_backup_pool.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Aug 17 19:04:51 CST 2016 +// Copyright (c) 2016 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 #include diff --git a/src/brpc/details/usercode_backup_pool.h b/src/brpc/details/usercode_backup_pool.h index 10ae3692aa..47c2ba2949 100644 --- a/src/brpc/details/usercode_backup_pool.h +++ b/src/brpc/details/usercode_backup_pool.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Aug 17 19:04:51 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_USERCODE_BACKUP_POOL_H #define BRPC_USERCODE_BACKUP_POOL_H diff --git a/src/brpc/esp_head.h b/src/brpc/esp_head.h index 56a71532d2..0845892153 100644 --- a/src/brpc/esp_head.h +++ b/src/brpc/esp_head.h @@ -1,32 +1,41 @@ +// 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. + #ifndef BRPC_ESP_HEAD_H #define BRPC_ESP_HEAD_H - namespace brpc { #pragma pack(push, r1, 1) -/// ESPAddress structure union EspAddress { - uint64_t addr; ///< 地址 + uint64_t addr; struct { - uint16_t stub; ///< ESP中的stub - uint16_t port; ///< 端口号 - uint32_t ip; ///< IP + uint16_t stub; + uint16_t port; + uint32_t ip; }; }; -/// ESPHead structure struct EspHead { - EspAddress from; ///< 来源ESP地址 - EspAddress to; ///< 目的ESP地址 - uint32_t msg; ///< 消息标号 - uint64_t msg_id; ///< 消息ID - int body_len; ///< 数据区字节数 + EspAddress from; + EspAddress to; + uint32_t msg; + uint64_t msg_id; + int body_len; }; #pragma pack(pop, r1) } // namespace brpc - -#endif - +#endif // BRPC_ESP_HEAD_H diff --git a/src/brpc/esp_message.cpp b/src/brpc/esp_message.cpp index 1e24babcea..b92d35d490 100644 --- a/src/brpc/esp_message.cpp +++ b/src/brpc/esp_message.cpp @@ -1,3 +1,17 @@ +// 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. + // Generated by the protocol buffer compiler. DO NOT EDIT! #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION diff --git a/src/brpc/esp_message.h b/src/brpc/esp_message.h index 1254256ca2..ef1a061808 100644 --- a/src/brpc/esp_message.h +++ b/src/brpc/esp_message.h @@ -1,3 +1,17 @@ +// 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. + #ifndef BRPC_ESP_MESSAGE_H #define BRPC_ESP_MESSAGE_H diff --git a/src/brpc/event_dispatcher.cpp b/src/brpc/event_dispatcher.cpp index 4f315ac691..cb3b32135f 100644 --- a/src/brpc/event_dispatcher.cpp +++ b/src/brpc/event_dispatcher.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Sep 2 12:22:11 CST 2014 +// 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 // DEFINE_int32 #include // epoll_create diff --git a/src/brpc/event_dispatcher.h b/src/brpc/event_dispatcher.h index 6adb9b514a..77fe0edc69 100644 --- a/src/brpc/event_dispatcher.h +++ b/src/brpc/event_dispatcher.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Sep 2 12:22:11 CST 2014 +// 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. #ifndef BRPC_EVENT_DISPATCHER_H #define BRPC_EVENT_DISPATCHER_H diff --git a/src/brpc/excluded_servers.h b/src/brpc/excluded_servers.h index 2375ca0620..5cefab90ee 100644 --- a/src/brpc/excluded_servers.h +++ b/src/brpc/excluded_servers.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 22 22:23:13 CST 2014 +// 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. #ifndef BRPC_EXCLUDED_SERVERS_H #define BRPC_EXCLUDED_SERVERS_H diff --git a/src/brpc/extension.h b/src/brpc/extension.h index 4e9931b954..8256b10fc8 100644 --- a/src/brpc/extension.h +++ b/src/brpc/extension.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Oct 14 15:16:29 CST 2014 +// 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. #ifndef BRPC_EXTENSION_H #define BRPC_EXTENSION_H diff --git a/src/brpc/extension_inl.h b/src/brpc/extension_inl.h index 13f2b231e9..a77dc635b9 100644 --- a/src/brpc/extension_inl.h +++ b/src/brpc/extension_inl.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Oct 14 15:16:29 CST 2014 +// 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. #ifndef BRPC_EXTENSION_INL_H #define BRPC_EXTENSION_INL_H diff --git a/src/brpc/global.cpp b/src/brpc/global.cpp index b4c2e4f6c1..8bc1a6142e 100644 --- a/src/brpc/global.cpp +++ b/src/brpc/global.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Oct 27 14:02:49 2014 +// 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 #include diff --git a/src/brpc/global.h b/src/brpc/global.h index 6ddfe2ba4e..273228f521 100644 --- a/src/brpc/global.h +++ b/src/brpc/global.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Oct 27 14:02:49 2014 +// 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. #ifndef BRPC_GLOBAL_H #define BRPC_GLOBAL_H diff --git a/src/brpc/health_reporter.h b/src/brpc/health_reporter.h index 7dc7b0a4b2..c1bee13ee5 100644 --- a/src/brpc/health_reporter.h +++ b/src/brpc/health_reporter.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Mar 11 14:57:24 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_HEALTH_REPORTER_H #define BRPC_HEALTH_REPORTER_H diff --git a/src/brpc/http_header.cpp b/src/brpc/http_header.cpp index 7a3645c438..91980accb5 100644 --- a/src/brpc/http_header.cpp +++ b/src/brpc/http_header.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/12/16 18:54:10 +// 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 "brpc/http_status_code.h" // HTTP_STATUS_* #include "brpc/http_header.h" diff --git a/src/brpc/http_header.h b/src/brpc/http_header.h index 8775a27bdd..7bf048dbdc 100644 --- a/src/brpc/http_header.h +++ b/src/brpc/http_header.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/12/10 15:54:59 +// 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. #ifndef BRPC_HTTP_HEADER_H #define BRPC_HTTP_HEADER_H diff --git a/src/brpc/http_method.cpp b/src/brpc/http_method.cpp index 2abf7a9090..d7ddc04517 100644 --- a/src/brpc/http_method.cpp +++ b/src/brpc/http_method.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/12/26 15:01:15 +// 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 // abort() #include "base/macros.h" diff --git a/src/brpc/http_method.h b/src/brpc/http_method.h index ff9721182a..db19d64e85 100644 --- a/src/brpc/http_method.h +++ b/src/brpc/http_method.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/12/26 14:43:32 +// 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. #ifndef BRPC_HTTP_METHOD_H #define BRPC_HTTP_METHOD_H diff --git a/src/brpc/http_status_code.cpp b/src/brpc/http_status_code.cpp index b7ea1e82c7..5f48902e28 100644 --- a/src/brpc/http_status_code.cpp +++ b/src/brpc/http_status_code.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/04 17:11:49 +// 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 // snprintf diff --git a/src/brpc/http_status_code.h b/src/brpc/http_status_code.h index cc4c6d75ee..4dac7e7cfc 100644 --- a/src/brpc/http_status_code.h +++ b/src/brpc/http_status_code.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date 2014/10/22 16:17:58 +// 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. #ifndef BRPC_HTTP_STATUS_CODE_H #define BRPC_HTTP_STATUS_CODE_H diff --git a/src/brpc/input_message_base.h b/src/brpc/input_message_base.h index 847c4f1fae..dce019c427 100644 --- a/src/brpc/input_message_base.h +++ b/src/brpc/input_message_base.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Sep 2 21:38:04 CST 2014 +// 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. #ifndef BRPC_INPUT_MESSAGE_BASE_H #define BRPC_INPUT_MESSAGE_BASE_H diff --git a/src/brpc/input_messenger.cpp b/src/brpc/input_messenger.cpp index 8ecea197df..d4869143e7 100644 --- a/src/brpc/input_messenger.cpp +++ b/src/brpc/input_messenger.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Sep 2 21:38:04 CST 2014 +// 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 #include "base/fd_guard.h" // fd_guard diff --git a/src/brpc/input_messenger.h b/src/brpc/input_messenger.h index 91d808fbff..56141b840d 100644 --- a/src/brpc/input_messenger.h +++ b/src/brpc/input_messenger.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Sep 2 21:38:04 CST 2014 +// 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. #ifndef BRPC_INPUT_MESSENGER_H #define BRPC_INPUT_MESSENGER_H diff --git a/src/brpc/load_balancer.cpp b/src/brpc/load_balancer.cpp index 809570eee9..6f2b4229bc 100644 --- a/src/brpc/load_balancer.cpp +++ b/src/brpc/load_balancer.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 22 22:23:13 CST 2014 +// 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 #include "brpc/reloadable_flags.h" diff --git a/src/brpc/load_balancer.h b/src/brpc/load_balancer.h index f4663bb80c..d401564369 100644 --- a/src/brpc/load_balancer.h +++ b/src/brpc/load_balancer.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 22 22:23:13 CST 2014 +// 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. #ifndef BRPC_LOAD_BALANCER_H #define BRPC_LOAD_BALANCER_H diff --git a/src/brpc/log.h b/src/brpc/log.h index 054d84698d..9fac294604 100644 --- a/src/brpc/log.h +++ b/src/brpc/log.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 14 22:53:17 CST 2014 +// 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. #ifndef BAIDU_RPC_LOG_H #define BAIDU_RPC_LOG_H diff --git a/src/brpc/memcache.cpp b/src/brpc/memcache.cpp index a243a84a7f..9edbcbc535 100644 --- a/src/brpc/memcache.cpp +++ b/src/brpc/memcache.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include diff --git a/src/brpc/memcache.h b/src/brpc/memcache.h index 92aa490886..270156c518 100644 --- a/src/brpc/memcache.h +++ b/src/brpc/memcache.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_MEMCACHE_H #define BRPC_MEMCACHE_H diff --git a/src/brpc/mongo_head.h b/src/brpc/mongo_head.h index 6db3ab29bc..86cc52aebe 100644 --- a/src/brpc/mongo_head.h +++ b/src/brpc/mongo_head.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Feb 9 21:21:01 2015 +// Copyright (c) 2015 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. #ifndef BRPC_MONGO_HEAD_H #define BRPC_MONGO_HEAD_H diff --git a/src/brpc/mongo_service_adaptor.h b/src/brpc/mongo_service_adaptor.h index 7f10e3009a..26993df835 100644 --- a/src/brpc/mongo_service_adaptor.h +++ b/src/brpc/mongo_service_adaptor.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Oct 26 12:18:15 2015 +// Copyright (c) 2015 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. #ifndef BRPC_MONGO_SERVICE_ADAPTOR_H #define BRPC_MONGO_SERVICE_ADAPTOR_H diff --git a/src/brpc/naming_service.h b/src/brpc/naming_service.h index 0a4d053552..7d5ec3ba1d 100644 --- a/src/brpc/naming_service.h +++ b/src/brpc/naming_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 20:02:37 CST 2014 +// 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. #ifndef BRPC_NAMING_SERVICE_H #define BRPC_NAMING_SERVICE_H diff --git a/src/brpc/naming_service_filter.h b/src/brpc/naming_service_filter.h index 4960564084..eb36181c3d 100644 --- a/src/brpc/naming_service_filter.h +++ b/src/brpc/naming_service_filter.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu May 5 18:55:33 2016 +// Copyright (c) 2016 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. #ifndef BRPC_NAMING_SERVICE_FILTER_H #define BRPC_NAMING_SERVICE_FILTER_H diff --git a/src/brpc/nshead.h b/src/brpc/nshead.h index e69e03ee43..0f03d4ab61 100644 --- a/src/brpc/nshead.h +++ b/src/brpc/nshead.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Feb 9 21:21:01 2015 +// Copyright (c) 2015 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. #ifndef BRPC_NSHEAD_H #define BRPC_NSHEAD_H diff --git a/src/brpc/nshead_message.cpp b/src/brpc/nshead_message.cpp index f103158fe8..27e14c138f 100644 --- a/src/brpc/nshead_message.cpp +++ b/src/brpc/nshead_message.cpp @@ -1,3 +1,17 @@ +// 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. + #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "brpc/nshead_message.h" diff --git a/src/brpc/nshead_message.h b/src/brpc/nshead_message.h index 366ba83bda..22e96eff20 100644 --- a/src/brpc/nshead_message.h +++ b/src/brpc/nshead_message.h @@ -1,5 +1,16 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: brpc/nshead_message.proto +// 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. #ifndef BRPC_NSHEAD_MESSAGE_H #define BRPC_NSHEAD_MESSAGE_H diff --git a/src/brpc/nshead_pb_service_adaptor.cpp b/src/brpc/nshead_pb_service_adaptor.cpp index 25dad1f294..bf1ac122bb 100644 --- a/src/brpc/nshead_pb_service_adaptor.cpp +++ b/src/brpc/nshead_pb_service_adaptor.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Mar 30 13:26:42 2015 +// Copyright (c) 2015 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 // MethodDescriptor #include // Message diff --git a/src/brpc/nshead_pb_service_adaptor.h b/src/brpc/nshead_pb_service_adaptor.h index b461f59fba..c3f15c2189 100644 --- a/src/brpc/nshead_pb_service_adaptor.h +++ b/src/brpc/nshead_pb_service_adaptor.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Mar 30 13:11:01 2015 +// Copyright (c) 2015 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. #ifndef BRPC_NSHEAD_PB_SERVICE_ADAPTOR_H #define BRPC_NSHEAD_PB_SERVICE_ADAPTOR_H diff --git a/src/brpc/nshead_service.cpp b/src/brpc/nshead_service.cpp index 18007a8648..39e312ad68 100644 --- a/src/brpc/nshead_service.cpp +++ b/src/brpc/nshead_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Mar 30 13:11:01 2015 +// Copyright (c) 2015 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 "base/class_name.h" #include "brpc/nshead_service.h" diff --git a/src/brpc/nshead_service.h b/src/brpc/nshead_service.h index 87526453d9..cd538759f0 100644 --- a/src/brpc/nshead_service.h +++ b/src/brpc/nshead_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Mar 30 13:11:01 2015 +// Copyright (c) 2015 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. #ifndef BRPC_NSHEAD_SERVICE_H #define BRPC_NSHEAD_SERVICE_H diff --git a/src/brpc/parallel_channel.cpp b/src/brpc/parallel_channel.cpp index c7ba29370b..6437d34d31 100644 --- a/src/brpc/parallel_channel.cpp +++ b/src/brpc/parallel_channel.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Mar 6 18:09:15 CST 2015 +// Copyright (c) 2015 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 "bthread/unstable.h" // bthread_timer_add #include "base/atomicops.h" diff --git a/src/brpc/parallel_channel.h b/src/brpc/parallel_channel.h index 455eca30e8..5cb1e2698a 100644 --- a/src/brpc/parallel_channel.h +++ b/src/brpc/parallel_channel.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Mar 6 18:09:15 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_PARALLEL_CHANNEL_H #define BRPC_PARALLEL_CHANNEL_H diff --git a/src/brpc/parse_result.h b/src/brpc/parse_result.h index 4ddfa665c3..09bef09af5 100644 --- a/src/brpc/parse_result.h +++ b/src/brpc/parse_result.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 7 17:24:45 CST 2014 +// 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. #ifndef BRPC_PARSE_RESULT_H #define BRPC_PARSE_RESULT_H diff --git a/src/brpc/partition_channel.cpp b/src/brpc/partition_channel.cpp index 1f87eea139..dd6b6ce9f3 100644 --- a/src/brpc/partition_channel.cpp +++ b/src/brpc/partition_channel.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Sep 4 00:11:10 CST 2015 +// Copyright (c) 2015 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 "base/containers/flat_map.h" #include "brpc/log.h" diff --git a/src/brpc/partition_channel.h b/src/brpc/partition_channel.h index 7954a707a1..d2069f6055 100644 --- a/src/brpc/partition_channel.h +++ b/src/brpc/partition_channel.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Sep 4 00:11:10 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_PARTITION_CHANNEL_H #define BRPC_PARTITION_CHANNEL_H diff --git a/src/brpc/periodic_naming_service.cpp b/src/brpc/periodic_naming_service.cpp index 7ad0f9cd11..632cdd25cc 100644 --- a/src/brpc/periodic_naming_service.cpp +++ b/src/brpc/periodic_naming_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 20:02:37 CST 2014 +// 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 #include "base/logging.h" diff --git a/src/brpc/periodic_naming_service.h b/src/brpc/periodic_naming_service.h index 8d99bff6b5..7862afb7a4 100644 --- a/src/brpc/periodic_naming_service.h +++ b/src/brpc/periodic_naming_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 20:02:37 CST 2014 +// 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. #ifndef BRPC_PERIODIC_NAMING_SERVICE_H #define BRPC_PERIODIC_NAMING_SERVICE_H diff --git a/src/brpc/policy/baidu_naming_service.cpp b/src/brpc/policy/baidu_naming_service.cpp index d3b1176856..60a4b44460 100644 --- a/src/brpc/policy/baidu_naming_service.cpp +++ b/src/brpc/policy/baidu_naming_service.cpp @@ -1,6 +1,16 @@ -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date 2014/10/20 11:53:16 +// 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. #ifdef BAIDU_INTERNAL diff --git a/src/brpc/policy/baidu_naming_service.h b/src/brpc/policy/baidu_naming_service.h index 4a748b2553..0eb49c1fbc 100644 --- a/src/brpc/policy/baidu_naming_service.h +++ b/src/brpc/policy/baidu_naming_service.h @@ -1,8 +1,16 @@ -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// File baidu_naming_service.h -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date 2014/10/20 11:42:51 -// Implement NamingService to acquire server list from Baidu-Naming-Service +// 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. #ifdef BAIDU_INTERNAL @@ -14,6 +22,7 @@ namespace brpc { namespace policy { +// Acquire server list from Baidu-Naming-Service, aka BNS class BaiduNamingService : public PeriodicNamingService { public: // You can specify port by appending port selector: diff --git a/src/brpc/policy/baidu_rpc_protocol.cpp b/src/brpc/policy/baidu_rpc_protocol.cpp index baf27d0294..119c602613 100644 --- a/src/brpc/policy/baidu_rpc_protocol.cpp +++ b/src/brpc/policy/baidu_rpc_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Nov 13 21:37:29 CST 2014 +// 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/baidu_rpc_protocol.h b/src/brpc/policy/baidu_rpc_protocol.h index 2c8de1d227..56933a6ffa 100644 --- a/src/brpc/policy/baidu_rpc_protocol.h +++ b/src/brpc/policy/baidu_rpc_protocol.h @@ -1,15 +1,22 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Nov 13 21:37:29 CST 2014 +// 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. #ifndef BRPC_POLICY_BRPC_PROTOCOL_H #define BRPC_POLICY_BRPC_PROTOCOL_H #include "brpc/protocol.h" - namespace brpc { namespace policy { @@ -38,5 +45,4 @@ void PackRpcRequest(base::IOBuf* buf, } // namespace policy } // namespace brpc - #endif // BRPC_POLICY_BRPC_PROTOCOL_H diff --git a/src/brpc/policy/consistent_hashing_load_balancer.cpp b/src/brpc/policy/consistent_hashing_load_balancer.cpp index cf94a28deb..aae812cc42 100644 --- a/src/brpc/policy/consistent_hashing_load_balancer.cpp +++ b/src/brpc/policy/consistent_hashing_load_balancer.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/06/09 13:49:24 +// Copyright (c) 2015 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 // std::set_union #include diff --git a/src/brpc/policy/consistent_hashing_load_balancer.h b/src/brpc/policy/consistent_hashing_load_balancer.h index 321f66d716..0f2edc8a95 100644 --- a/src/brpc/policy/consistent_hashing_load_balancer.h +++ b/src/brpc/policy/consistent_hashing_load_balancer.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/06/09 13:48:22 +// Copyright (c) 2015 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. #ifndef BRPC_CONSISTENT_HASHING_LOAD_BALANCER_H #define BRPC_CONSISTENT_HASHING_LOAD_BALANCER_H diff --git a/src/brpc/policy/dh.cpp b/src/brpc/policy/dh.cpp index 1c2850ca46..a4f62a8cef 100644 --- a/src/brpc/policy/dh.cpp +++ b/src/brpc/policy/dh.cpp @@ -1,8 +1,3 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Jun 8 18:07:38 CST 2016 - // [ Modified from code in SRS2 (src/protocol/srs_rtmp_handshake.cpp:140) ] // The MIT License (MIT) // Copyright (c) 2013-2015 SRS(ossrs) diff --git a/src/brpc/policy/dh.h b/src/brpc/policy/dh.h index 38ee7f75f9..8b888ba304 100644 --- a/src/brpc/policy/dh.h +++ b/src/brpc/policy/dh.h @@ -1,8 +1,3 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Jun 8 18:07:38 CST 2016 - // [ Modified from code in SRS2 (src/protocol/srs_rtmp_handshake.cpp:140) ] // The MIT License (MIT) // Copyright (c) 2013-2015 SRS(ossrs) diff --git a/src/brpc/policy/domain_naming_service.cpp b/src/brpc/policy/domain_naming_service.cpp index 69295e3433..b5419436bf 100644 --- a/src/brpc/policy/domain_naming_service.cpp +++ b/src/brpc/policy/domain_naming_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Jan 1 18:55:20 CST 2015 +// Copyright (c) 2015 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 // gethostbyname_r #include // strtol diff --git a/src/brpc/policy/domain_naming_service.h b/src/brpc/policy/domain_naming_service.h index 1ca6caa370..46847f89ad 100644 --- a/src/brpc/policy/domain_naming_service.h +++ b/src/brpc/policy/domain_naming_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Jan 1 18:55:20 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_POLICY_DOMAIN_NAMING_SERVICE_H #define BRPC_POLICY_DOMAIN_NAMING_SERVICE_H diff --git a/src/brpc/policy/dynpart_load_balancer.cpp b/src/brpc/policy/dynpart_load_balancer.cpp index 2faddcd5bc..de488cee5c 100644 --- a/src/brpc/policy/dynpart_load_balancer.cpp +++ b/src/brpc/policy/dynpart_load_balancer.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 29 13:33:36 CST 2014 +// 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 "base/macros.h" #include "base/fast_rand.h" diff --git a/src/brpc/policy/dynpart_load_balancer.h b/src/brpc/policy/dynpart_load_balancer.h index 5f4fe2b493..f414daaf8f 100644 --- a/src/brpc/policy/dynpart_load_balancer.h +++ b/src/brpc/policy/dynpart_load_balancer.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 29 13:33:36 CST 2014 +// 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. #ifndef BRPC_POLICY_DYNPART_LOAD_BALANCER_H #define BRPC_POLICY_DYNPART_LOAD_BALANCER_H diff --git a/src/brpc/policy/esp_authenticator.cpp b/src/brpc/policy/esp_authenticator.cpp index 26b9a4b675..662c42f446 100644 --- a/src/brpc/policy/esp_authenticator.cpp +++ b/src/brpc/policy/esp_authenticator.cpp @@ -1,3 +1,17 @@ +// Copyright (c) 2016 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 "base/logging.h" #include "base/memory/singleton_on_pthread_once.h" #include "brpc/policy/esp_authenticator.h" diff --git a/src/brpc/policy/esp_authenticator.h b/src/brpc/policy/esp_authenticator.h index da12ee753c..dadac4f73b 100644 --- a/src/brpc/policy/esp_authenticator.h +++ b/src/brpc/policy/esp_authenticator.h @@ -1,3 +1,17 @@ +// Copyright (c) 2016 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. + #ifndef BRPC_POLICY_ESP_AUTHENTICATOR_H #define BRPC_POLICY_ESP_AUTHENTICATOR_H diff --git a/src/brpc/policy/esp_protocol.cpp b/src/brpc/policy/esp_protocol.cpp index 484c01c6f1..dccec549cb 100644 --- a/src/brpc/policy/esp_protocol.cpp +++ b/src/brpc/policy/esp_protocol.cpp @@ -1,3 +1,17 @@ +// Copyright (c) 2016 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 // MethodDescriptor #include // Message #include diff --git a/src/brpc/policy/esp_protocol.h b/src/brpc/policy/esp_protocol.h index c4ceda8890..0a30b2876f 100644 --- a/src/brpc/policy/esp_protocol.h +++ b/src/brpc/policy/esp_protocol.h @@ -1,3 +1,17 @@ +// Copyright (c) 2016 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. + #ifndef BRPC_POLICY_ESP_PROTOCOL_H #define BRPC_POLICY_ESP_PROTOCOL_H diff --git a/src/brpc/policy/file_naming_service.cpp b/src/brpc/policy/file_naming_service.cpp index 5805364692..781b4bf66a 100644 --- a/src/brpc/policy/file_naming_service.cpp +++ b/src/brpc/policy/file_naming_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/20 14:15:27 +// 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 // getline #include // std::string diff --git a/src/brpc/policy/file_naming_service.h b/src/brpc/policy/file_naming_service.h index f95deb994b..2e2ec5885a 100644 --- a/src/brpc/policy/file_naming_service.h +++ b/src/brpc/policy/file_naming_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/20 14:10:19 +// 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. #ifndef BRPC_POLICY_FILE_NAMING_SERVICE #define BRPC_POLICY_FILE_NAMING_SERVICE diff --git a/src/brpc/policy/giano_authenticator.cpp b/src/brpc/policy/giano_authenticator.cpp index 22a3fdf388..ad9c3b7d57 100644 --- a/src/brpc/policy/giano_authenticator.cpp +++ b/src/brpc/policy/giano_authenticator.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Nov 3 00:40:20 2014 +// 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. #ifdef BAIDU_INTERNAL diff --git a/src/brpc/policy/giano_authenticator.h b/src/brpc/policy/giano_authenticator.h index 53cb8787ec..962fcefda5 100644 --- a/src/brpc/policy/giano_authenticator.h +++ b/src/brpc/policy/giano_authenticator.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Nov 2 00:30:49 2014 +// 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. #ifdef BAIDU_INTERNAL diff --git a/src/brpc/policy/gzip_compress.cpp b/src/brpc/policy/gzip_compress.cpp index 96ef94a8c1..e2b3d49ec0 100644 --- a/src/brpc/policy/gzip_compress.cpp +++ b/src/brpc/policy/gzip_compress.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Oct 27 14:04:44 2014 +// 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 // GzipXXXStream #include "base/logging.h" diff --git a/src/brpc/policy/gzip_compress.h b/src/brpc/policy/gzip_compress.h index fe172ba5c4..44327776f0 100644 --- a/src/brpc/policy/gzip_compress.h +++ b/src/brpc/policy/gzip_compress.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Oct 28 17:11:18 2014 +// 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. #ifndef BRPC_POLICY_GZIP_COMPRESS_H #define BRPC_POLICY_GZIP_COMPRESS_H diff --git a/src/brpc/policy/hasher.cpp b/src/brpc/policy/hasher.cpp index 72a8593192..b7b12faf21 100644 --- a/src/brpc/policy/hasher.cpp +++ b/src/brpc/policy/hasher.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/06/17 15:03:12 +// Copyright (c) 2015 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 #include diff --git a/src/brpc/policy/hasher.h b/src/brpc/policy/hasher.h index aa958d9237..9fc09f4076 100644 --- a/src/brpc/policy/hasher.h +++ b/src/brpc/policy/hasher.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/06/11 17:46:26 +// Copyright (c) 2015 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. #ifndef BRPC_HASHER_H #define BRPC_HASHER_H diff --git a/src/brpc/policy/http_rpc_protocol.cpp b/src/brpc/policy/http_rpc_protocol.cpp index c0bea6a691..ec9c93d4b3 100644 --- a/src/brpc/policy/http_rpc_protocol.cpp +++ b/src/brpc/policy/http_rpc_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/27 16:01:56 +// 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 // MethodDescriptor #include diff --git a/src/brpc/policy/http_rpc_protocol.h b/src/brpc/policy/http_rpc_protocol.h index f6821dbee8..4ac3b75359 100644 --- a/src/brpc/policy/http_rpc_protocol.h +++ b/src/brpc/policy/http_rpc_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/27 15:37:11 +// 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. #ifndef BRPC_POLICY_HTTP_RPC_PROTOCOL_H #define BRPC_POLICY_HTTP_RPC_PROTOCOL_H diff --git a/src/brpc/policy/hulu_pbrpc_controller.h b/src/brpc/policy/hulu_pbrpc_controller.h index e1bf7fd653..fe69a345bc 100644 --- a/src/brpc/policy/hulu_pbrpc_controller.h +++ b/src/brpc/policy/hulu_pbrpc_controller.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2017 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2017/03/06 10:50:46 +// Copyright (c) 2017 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. #ifndef BRPC_HULU_PBRPC_CONTROLLER_H #define BRPC_HULU_PBRPC_CONTROLLER_H diff --git a/src/brpc/policy/hulu_pbrpc_protocol.cpp b/src/brpc/policy/hulu_pbrpc_protocol.cpp index 4cd8314482..9c403bd795 100644 --- a/src/brpc/policy/hulu_pbrpc_protocol.cpp +++ b/src/brpc/policy/hulu_pbrpc_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Sep 2 21:38:04 CST 2014 +// 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/hulu_pbrpc_protocol.h b/src/brpc/policy/hulu_pbrpc_protocol.h index 57de6dd2db..3ffdf76f1f 100644 --- a/src/brpc/policy/hulu_pbrpc_protocol.h +++ b/src/brpc/policy/hulu_pbrpc_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Sep 2 21:38:04 CST 2014 +// 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. #ifndef BRPC_POLICY_HULU_PBRPC_PROTOCOL_H #define BRPC_POLICY_HULU_PBRPC_PROTOCOL_H diff --git a/src/brpc/policy/list_naming_service.cpp b/src/brpc/policy/list_naming_service.cpp index 1986c3f42b..1e76dafe09 100644 --- a/src/brpc/policy/list_naming_service.cpp +++ b/src/brpc/policy/list_naming_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Jan 1 18:55:20 CST 2015 +// Copyright (c) 2015 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 // strtol #include // std::string diff --git a/src/brpc/policy/list_naming_service.h b/src/brpc/policy/list_naming_service.h index b24fa5753d..29c4f8b694 100644 --- a/src/brpc/policy/list_naming_service.h +++ b/src/brpc/policy/list_naming_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Jan 1 18:55:20 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_POLICY_LIST_NAMING_SERVICE #define BRPC_POLICY_LIST_NAMING_SERVICE diff --git a/src/brpc/policy/locality_aware_load_balancer.cpp b/src/brpc/policy/locality_aware_load_balancer.cpp index f79d3b2cd6..83dbab5568 100644 --- a/src/brpc/policy/locality_aware_load_balancer.cpp +++ b/src/brpc/policy/locality_aware_load_balancer.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 29 13:33:36 CST 2014 +// 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 // numeric_limits #include diff --git a/src/brpc/policy/locality_aware_load_balancer.h b/src/brpc/policy/locality_aware_load_balancer.h index 9b3ac48dd4..e00c25a03f 100644 --- a/src/brpc/policy/locality_aware_load_balancer.h +++ b/src/brpc/policy/locality_aware_load_balancer.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 29 13:33:36 CST 2014 +// 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. #ifndef BRPC_POLICY_LOCALITY_AWARE_LOAD_BALANCER_H #define BRPC_POLICY_LOCALITY_AWARE_LOAD_BALANCER_H diff --git a/src/brpc/policy/memcache_binary_header.h b/src/brpc/policy/memcache_binary_header.h index df938751fd..8b63d37872 100644 --- a/src/brpc/policy/memcache_binary_header.h +++ b/src/brpc/policy/memcache_binary_header.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_MEMCACHE_BINARY_HEADER_H #define BRPC_MEMCACHE_BINARY_HEADER_H diff --git a/src/brpc/policy/memcache_binary_protocol.cpp b/src/brpc/policy/memcache_binary_protocol.cpp index c175bc1eff..d9f12d0e18 100644 --- a/src/brpc/policy/memcache_binary_protocol.cpp +++ b/src/brpc/policy/memcache_binary_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/memcache_binary_protocol.h b/src/brpc/policy/memcache_binary_protocol.h index a040554443..9f5332ed36 100644 --- a/src/brpc/policy/memcache_binary_protocol.h +++ b/src/brpc/policy/memcache_binary_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_POLICY_MEMCACHE_BINARY_PROTOCOL_H #define BRPC_POLICY_MEMCACHE_BINARY_PROTOCOL_H diff --git a/src/brpc/policy/mongo_protocol.cpp b/src/brpc/policy/mongo_protocol.cpp index 0346bcd888..63d56afcb5 100644 --- a/src/brpc/policy/mongo_protocol.cpp +++ b/src/brpc/policy/mongo_protocol.cpp @@ -1,9 +1,17 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Oct 08 13:11:01 2015 -// +// Copyright (c) 2015 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 // MethodDescriptor #include // Message #include diff --git a/src/brpc/policy/mongo_protocol.h b/src/brpc/policy/mongo_protocol.h index 77bdc6afde..5c1303886f 100644 --- a/src/brpc/policy/mongo_protocol.h +++ b/src/brpc/policy/mongo_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Oct 08 13:11:01 2015 +// Copyright (c) 2015 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. #ifndef BRPC_POLICY_MONGO_PROTOCOL_H #define BRPC_POLICY_MONGO_PROTOCOL_H diff --git a/src/brpc/policy/most_common_message.h b/src/brpc/policy/most_common_message.h index 431b854e74..d9c717c43f 100644 --- a/src/brpc/policy/most_common_message.h +++ b/src/brpc/policy/most_common_message.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Nov 13 21:37:29 CST 2014 +// 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. #ifndef BRPC_POLICY_MOST_COMMON_MESSAGE_H #define BRPC_POLICY_MOST_COMMON_MESSAGE_H diff --git a/src/brpc/policy/nova_pbrpc_protocol.cpp b/src/brpc/policy/nova_pbrpc_protocol.cpp index efa51f1d3a..0cf0d4f642 100644 --- a/src/brpc/policy/nova_pbrpc_protocol.cpp +++ b/src/brpc/policy/nova_pbrpc_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/18 11:37:27 +// 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/nova_pbrpc_protocol.h b/src/brpc/policy/nova_pbrpc_protocol.h index 0636b9c166..b3c39a8f0f 100644 --- a/src/brpc/policy/nova_pbrpc_protocol.h +++ b/src/brpc/policy/nova_pbrpc_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/11/18 11:13:19 +// 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. #ifndef BRPC_POLICY_NOVA_PBRPC_PROTOCOL_H #define BRPC_POLICY_NOVA_PBRPC_PROTOCOL_H diff --git a/src/brpc/policy/nshead_mcpack_protocol.cpp b/src/brpc/policy/nshead_mcpack_protocol.cpp index 07b2489ae8..452e4943a1 100644 --- a/src/brpc/policy/nshead_mcpack_protocol.cpp +++ b/src/brpc/policy/nshead_mcpack_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Apr 19 18:17:26 CST 2016 +// Copyright (c) 2016 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/nshead_mcpack_protocol.h b/src/brpc/policy/nshead_mcpack_protocol.h index fb065be97a..f223b6c40e 100644 --- a/src/brpc/policy/nshead_mcpack_protocol.h +++ b/src/brpc/policy/nshead_mcpack_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Apr 19 18:17:26 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_POLICY_NSHEAD_MCPACK_PROTOCOL_H #define BRPC_POLICY_NSHEAD_MCPACK_PROTOCOL_H diff --git a/src/brpc/policy/nshead_protocol.cpp b/src/brpc/policy/nshead_protocol.cpp index 82b3b007bb..c0f9e71beb 100644 --- a/src/brpc/policy/nshead_protocol.cpp +++ b/src/brpc/policy/nshead_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Mar 30 13:26:42 2015 +// Copyright (c) 2015 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/nshead_protocol.h b/src/brpc/policy/nshead_protocol.h index de496a6955..6a84fa44ff 100644 --- a/src/brpc/policy/nshead_protocol.h +++ b/src/brpc/policy/nshead_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Mar 30 13:11:01 2015 +// Copyright (c) 2015 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. #ifndef BRPC_POLICY_NSHEAD_PROTOCOL_H #define BRPC_POLICY_NSHEAD_PROTOCOL_H diff --git a/src/brpc/policy/public_pbrpc_protocol.cpp b/src/brpc/policy/public_pbrpc_protocol.cpp index 5253a5c59b..bb091fbf62 100644 --- a/src/brpc/policy/public_pbrpc_protocol.cpp +++ b/src/brpc/policy/public_pbrpc_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Apr 20 11:21:27 2015 +// Copyright (c) 2015 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/public_pbrpc_protocol.h b/src/brpc/policy/public_pbrpc_protocol.h index 6a193f2e03..3ea3f98d92 100644 --- a/src/brpc/policy/public_pbrpc_protocol.h +++ b/src/brpc/policy/public_pbrpc_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Apr 20 11:21:40 2015 +// Copyright (c) 2015 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. #ifndef BRPC_POLICY_PUBLIC_PBRPC_PROTOCOL_H #define BRPC_POLICY_PUBLIC_PBRPC_PROTOCOL_H diff --git a/src/brpc/policy/randomized_load_balancer.cpp b/src/brpc/policy/randomized_load_balancer.cpp index d866c08b84..17b26e9f9c 100644 --- a/src/brpc/policy/randomized_load_balancer.cpp +++ b/src/brpc/policy/randomized_load_balancer.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 29 13:33:36 CST 2014 +// 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 "base/macros.h" #include "base/fast_rand.h" diff --git a/src/brpc/policy/randomized_load_balancer.h b/src/brpc/policy/randomized_load_balancer.h index 4724da7b8a..c346b33897 100644 --- a/src/brpc/policy/randomized_load_balancer.h +++ b/src/brpc/policy/randomized_load_balancer.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 29 13:33:36 CST 2014 +// 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. #ifndef BRPC_POLICY_RANDOMIZED_LOAD_BALANCER_H #define BRPC_POLICY_RANDOMIZED_LOAD_BALANCER_H diff --git a/src/brpc/policy/redis_protocol.cpp b/src/brpc/policy/redis_protocol.cpp index 2661dcc3cd..af12a310f6 100644 --- a/src/brpc/policy/redis_protocol.cpp +++ b/src/brpc/policy/redis_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/redis_protocol.h b/src/brpc/policy/redis_protocol.h index 651749c983..80080cf0a3 100644 --- a/src/brpc/policy/redis_protocol.h +++ b/src/brpc/policy/redis_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: Ge,Jun (gejun@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_POLICY_REDIS_PROTOCOL_H #define BRPC_POLICY_REDIS_PROTOCOL_H diff --git a/src/brpc/policy/remote_file_naming_service.cpp b/src/brpc/policy/remote_file_naming_service.cpp index 6ffaa657aa..b52f3b40ce 100644 --- a/src/brpc/policy/remote_file_naming_service.cpp +++ b/src/brpc/policy/remote_file_naming_service.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/20 14:15:27 +// 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 #include // getline diff --git a/src/brpc/policy/remote_file_naming_service.h b/src/brpc/policy/remote_file_naming_service.h index d6726c2ca5..5bd408ff4a 100644 --- a/src/brpc/policy/remote_file_naming_service.h +++ b/src/brpc/policy/remote_file_naming_service.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2014/10/20 14:10:19 +// 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. #ifndef BRPC_POLICY_HTTP_FILE_NAMING_SERVICE #define BRPC_POLICY_HTTP_FILE_NAMING_SERVICE diff --git a/src/brpc/policy/round_robin_load_balancer.cpp b/src/brpc/policy/round_robin_load_balancer.cpp index fd1635b49a..3e1b93161a 100644 --- a/src/brpc/policy/round_robin_load_balancer.cpp +++ b/src/brpc/policy/round_robin_load_balancer.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 29 13:33:36 CST 2014 +// 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 "base/macros.h" #include "base/fast_rand.h" diff --git a/src/brpc/policy/round_robin_load_balancer.h b/src/brpc/policy/round_robin_load_balancer.h index 1ab232a489..8d439ceb71 100644 --- a/src/brpc/policy/round_robin_load_balancer.h +++ b/src/brpc/policy/round_robin_load_balancer.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Sep 29 13:33:36 CST 2014 +// 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. #ifndef BRPC_POLICY_ROUND_ROBIN_LOAD_BALANCER_H #define BRPC_POLICY_ROUND_ROBIN_LOAD_BALANCER_H diff --git a/src/brpc/policy/rtmp_protocol.cpp b/src/brpc/policy/rtmp_protocol.cpp index ee45a3e608..75ba4adebb 100644 --- a/src/brpc/policy/rtmp_protocol.cpp +++ b/src/brpc/policy/rtmp_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Apr 28 15:04:01 CST 2016 +// Copyright (c) 2016 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 // dlsym #include // HMAC_CTX_init diff --git a/src/brpc/policy/rtmp_protocol.h b/src/brpc/policy/rtmp_protocol.h index 8bf5ecafa6..2dc6798388 100644 --- a/src/brpc/policy/rtmp_protocol.h +++ b/src/brpc/policy/rtmp_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Apr 28 15:04:01 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_POLICY_RTMP_PROTOCOL_H #define BRPC_POLICY_RTMP_PROTOCOL_H diff --git a/src/brpc/policy/snappy_compress.cpp b/src/brpc/policy/snappy_compress.cpp index 7a89993ee5..49efcf181f 100644 --- a/src/brpc/policy/snappy_compress.cpp +++ b/src/brpc/policy/snappy_compress.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/01/19 19:38:59 +// Copyright (c) 2015 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 "base/logging.h" #include "base/third_party/snappy/snappy.h" diff --git a/src/brpc/policy/snappy_compress.h b/src/brpc/policy/snappy_compress.h index a0865ace78..3fff8652dd 100644 --- a/src/brpc/policy/snappy_compress.h +++ b/src/brpc/policy/snappy_compress.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/01/20 14:42:14 +// Copyright (c) 2015 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. #ifndef BRPC_POLICY_SNAPPY_COMPRESS_H #define BRPC_POLICY_SNAPPY_COMPRESS_H diff --git a/src/brpc/policy/sofa_pbrpc_protocol.cpp b/src/brpc/policy/sofa_pbrpc_protocol.cpp index 8beffd6b5f..47d2effd6f 100644 --- a/src/brpc/policy/sofa_pbrpc_protocol.cpp +++ b/src/brpc/policy/sofa_pbrpc_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Sep 2 21:38:04 CST 2014 +// 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/sofa_pbrpc_protocol.h b/src/brpc/policy/sofa_pbrpc_protocol.h index ba50ce733e..463298f418 100644 --- a/src/brpc/policy/sofa_pbrpc_protocol.h +++ b/src/brpc/policy/sofa_pbrpc_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Sep 2 21:38:04 CST 2014 +// 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. #ifndef BRPC_POLICY_SOFA_PBRPC_PROTOCOL_H #define BRPC_POLICY_SOFA_PBRPC_PROTOCOL_H diff --git a/src/brpc/policy/streaming_rpc_protocol.cpp b/src/brpc/policy/streaming_rpc_protocol.cpp index c0dceb23fe..65c94c72c0 100644 --- a/src/brpc/policy/streaming_rpc_protocol.cpp +++ b/src/brpc/policy/streaming_rpc_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/10/13 11:53:07 +// Copyright (c) 2015 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 "brpc/policy/streaming_rpc_protocol.h" diff --git a/src/brpc/policy/streaming_rpc_protocol.h b/src/brpc/policy/streaming_rpc_protocol.h index 4764064499..49af534889 100644 --- a/src/brpc/policy/streaming_rpc_protocol.h +++ b/src/brpc/policy/streaming_rpc_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/10/13 11:49:20 +// Copyright (c) 2015 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. #ifndef BRPC_STREAMING_RPC_PROTOCOL_H #define BRPC_STREAMING_RPC_PROTOCOL_H diff --git a/src/brpc/policy/ubrpc2pb_protocol.cpp b/src/brpc/policy/ubrpc2pb_protocol.cpp index ca9b995de0..71b4fd8c4e 100644 --- a/src/brpc/policy/ubrpc2pb_protocol.cpp +++ b/src/brpc/policy/ubrpc2pb_protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Dec 23 22:54:08 CST 2015 +// Copyright (c) 2015 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 // MethodDescriptor #include // Message diff --git a/src/brpc/policy/ubrpc2pb_protocol.h b/src/brpc/policy/ubrpc2pb_protocol.h index 011f0308b1..6219bfa44e 100644 --- a/src/brpc/policy/ubrpc2pb_protocol.h +++ b/src/brpc/policy/ubrpc2pb_protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Dec 23 22:54:08 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_POLICY_UBRPC2PB_PROTOCOL_H #define BRPC_POLICY_UBRPC2PB_PROTOCOL_H diff --git a/src/brpc/progressive_attachment.cpp b/src/brpc/progressive_attachment.cpp index 05aabdba49..429c1e4770 100644 --- a/src/brpc/progressive_attachment.cpp +++ b/src/brpc/progressive_attachment.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jun 14 17:19:16 CST 2016 +// Copyright (c) 2016 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 "base/logging.h" #include "bthread/bthread.h" // INVALID_BTHREAD_ID before bthread r32748 diff --git a/src/brpc/progressive_attachment.h b/src/brpc/progressive_attachment.h index b7358df25d..f91a7efed2 100644 --- a/src/brpc/progressive_attachment.h +++ b/src/brpc/progressive_attachment.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Jun 14 17:19:16 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_PROGRESSIVE_ATTACHMENT_H #define BRPC_PROGRESSIVE_ATTACHMENT_H diff --git a/src/brpc/progressive_reader.h b/src/brpc/progressive_reader.h index ffa5949c54..a2ab1ace5c 100644 --- a/src/brpc/progressive_reader.h +++ b/src/brpc/progressive_reader.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Nov 8 15:53:08 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_PROGRESSIVE_READER_H #define BRPC_PROGRESSIVE_READER_H diff --git a/src/brpc/protocol.cpp b/src/brpc/protocol.cpp index f2324be865..97a123741e 100644 --- a/src/brpc/protocol.cpp +++ b/src/brpc/protocol.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Dec 2 10:37:45 2014 +// 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. // Since kDefaultTotalBytesLimit is private, we need some hacks to get the limit. // Works for pb 2.4, 2.6, 3.0 diff --git a/src/brpc/protocol.h b/src/brpc/protocol.h index cdda9ce15a..7e42517aef 100644 --- a/src/brpc/protocol.h +++ b/src/brpc/protocol.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Dec 1 14:39:37 2014 +// 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. #ifndef BRPC_PROTOCOL_H #define BRPC_PROTOCOL_H diff --git a/src/brpc/redis.cpp b/src/brpc/redis.cpp index 43f1f750bf..3f9e1e0b1d 100644 --- a/src/brpc/redis.cpp +++ b/src/brpc/redis.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: Ge,Jun (gejun@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include diff --git a/src/brpc/redis.h b/src/brpc/redis.h index 794be98652..a0db21c48f 100644 --- a/src/brpc/redis.h +++ b/src/brpc/redis.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: Ge,Jun (gejun@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_REDIS_H #define BRPC_REDIS_H diff --git a/src/brpc/redis_command.cpp b/src/brpc/redis_command.cpp index 6210005a22..5e29a4e51e 100644 --- a/src/brpc/redis_command.cpp +++ b/src/brpc/redis_command.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: Ge,Jun (gejun@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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 "base/logging.h" #include "brpc/log.h" diff --git a/src/brpc/redis_command.h b/src/brpc/redis_command.h index 051919822f..6ce4bd1703 100644 --- a/src/brpc/redis_command.h +++ b/src/brpc/redis_command.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: Ge,Jun (gejun@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_REDIS_COMMAND_H #define BRPC_REDIS_COMMAND_H diff --git a/src/brpc/redis_reply.cpp b/src/brpc/redis_reply.cpp index e35dbcc73e..78dcc2322c 100644 --- a/src/brpc/redis_reply.cpp +++ b/src/brpc/redis_reply.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: Ge,Jun (gejun@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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 #include "base/logging.h" diff --git a/src/brpc/redis_reply.h b/src/brpc/redis_reply.h index 3e0d2ef6e4..2aadfb3f0f 100644 --- a/src/brpc/redis_reply.h +++ b/src/brpc/redis_reply.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: Ge,Jun (gejun@baidu.com) -// Date: Fri Jun 5 18:25:40 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_REDIS_REPLY_H #define BRPC_REDIS_REPLY_H diff --git a/src/brpc/reloadable_flags.cpp b/src/brpc/reloadable_flags.cpp index f9ed3b5528..98ffd20140 100644 --- a/src/brpc/reloadable_flags.cpp +++ b/src/brpc/reloadable_flags.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 16:27:49 CST 2014 +// 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 "base/macros.h" #include "brpc/reloadable_flags.h" diff --git a/src/brpc/reloadable_flags.h b/src/brpc/reloadable_flags.h index 549d97705a..8cc6ce6735 100644 --- a/src/brpc/reloadable_flags.h +++ b/src/brpc/reloadable_flags.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 16:27:49 CST 2014 +// 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. #ifndef BRPC_RELOADABLE_FLAGS_H #define BRPC_RELOADABLE_FLAGS_H diff --git a/src/brpc/restful.cpp b/src/brpc/restful.cpp index 6af679f7c5..e2dec193c0 100644 --- a/src/brpc/restful.cpp +++ b/src/brpc/restful.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2016-02-27 15:33:29 +// Copyright (c) 2016 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 #include "brpc/log.h" diff --git a/src/brpc/restful.h b/src/brpc/restful.h index 1953c333fb..4a17870edb 100644 --- a/src/brpc/restful.h +++ b/src/brpc/restful.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2016-02-27 15:33:29 +// Copyright (c) 2016 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. #ifndef BRPC_RESTFUL_H #define BRPC_RESTFUL_H diff --git a/src/brpc/retry_policy.cpp b/src/brpc/retry_policy.cpp index 4e2111ee2d..57dcaa6e94 100644 --- a/src/brpc/retry_policy.cpp +++ b/src/brpc/retry_policy.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Feb 14 14:14:32 CST 2016 +// Copyright (c) 2016 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 "brpc/retry_policy.h" diff --git a/src/brpc/retry_policy.h b/src/brpc/retry_policy.h index 1176898cdd..8c780e0c7f 100644 --- a/src/brpc/retry_policy.h +++ b/src/brpc/retry_policy.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Feb 14 14:14:32 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_RETRY_POLICY_H #define BRPC_RETRY_POLICY_H diff --git a/src/brpc/rpc_dump.cpp b/src/brpc/rpc_dump.cpp index df81687137..90c34f7500 100644 --- a/src/brpc/rpc_dump.cpp +++ b/src/brpc/rpc_dump.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Dec 14 19:12:30 CST 2015 +// Copyright (c) 2015 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 #include // O_CREAT diff --git a/src/brpc/rpc_dump.h b/src/brpc/rpc_dump.h index fabd52fa99..67528a02cf 100644 --- a/src/brpc/rpc_dump.h +++ b/src/brpc/rpc_dump.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon Dec 14 19:12:30 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_RPC_DUMP_H #define BRPC_RPC_DUMP_H diff --git a/src/brpc/rtmp.cpp b/src/brpc/rtmp.cpp index a7f767cdd0..b83b45108d 100644 --- a/src/brpc/rtmp.cpp +++ b/src/brpc/rtmp.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 27 17:46:12 CST 2016 +// Copyright (c) 2016 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 #include // StringOutputStream diff --git a/src/brpc/rtmp.h b/src/brpc/rtmp.h index 23c79ef1e4..a6b2ae1e37 100644 --- a/src/brpc/rtmp.h +++ b/src/brpc/rtmp.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Apr 27 17:46:12 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_RTMP_H #define BRPC_RTMP_H diff --git a/src/brpc/selective_channel.cpp b/src/brpc/selective_channel.cpp index 399f23c11e..e0e6b71391 100644 --- a/src/brpc/selective_channel.cpp +++ b/src/brpc/selective_channel.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Aug 27 10:40:14 CST 2015 +// Copyright (c) 2015 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 #include diff --git a/src/brpc/selective_channel.h b/src/brpc/selective_channel.h index eef8f30c68..473952297e 100644 --- a/src/brpc/selective_channel.h +++ b/src/brpc/selective_channel.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Aug 27 10:40:14 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_SELECTIVE_CHANNEL_H #define BRPC_SELECTIVE_CHANNEL_H diff --git a/src/brpc/serialized_request.cpp b/src/brpc/serialized_request.cpp index 2b6f853efd..25d58399f1 100644 --- a/src/brpc/serialized_request.cpp +++ b/src/brpc/serialized_request.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Dec 16 15:00:23 CST 2015 +// Copyright (c) 2015 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. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "brpc/serialized_request.h" diff --git a/src/brpc/serialized_request.h b/src/brpc/serialized_request.h index 23265c688f..aebdb4f972 100644 --- a/src/brpc/serialized_request.h +++ b/src/brpc/serialized_request.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Dec 16 15:00:23 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_SERIALIZED_REQUEST_H #define BRPC_SERIALIZED_REQUEST_H diff --git a/src/brpc/server.cpp b/src/brpc/server.cpp index e623b17d8c..98df645910 100644 --- a/src/brpc/server.cpp +++ b/src/brpc/server.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 21:51:29 CST 2014 +// 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 // wordexp #include diff --git a/src/brpc/server.h b/src/brpc/server.h index e2c3141778..4ffdd99994 100644 --- a/src/brpc/server.h +++ b/src/brpc/server.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 21:51:29 CST 2014 +// 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. #ifndef BRPC_SERVER_H #define BRPC_SERVER_H diff --git a/src/brpc/server_id.cpp b/src/brpc/server_id.cpp index 4cedd6e7af..6fedcbf25c 100644 --- a/src/brpc/server_id.cpp +++ b/src/brpc/server_id.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 7 17:24:45 CST 2014 +// 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 "brpc/server_id.h" diff --git a/src/brpc/server_id.h b/src/brpc/server_id.h index f1d5fb4b4d..641685d3d4 100644 --- a/src/brpc/server_id.h +++ b/src/brpc/server_id.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 7 17:24:45 CST 2014 +// 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. #ifndef BRPC_SERVER_ID_H #define BRPC_SERVER_ID_H diff --git a/src/brpc/shared_object.h b/src/brpc/shared_object.h index d595644d37..9d76a44233 100644 --- a/src/brpc/shared_object.h +++ b/src/brpc/shared_object.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Mon May 11 15:22:39 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_SHARED_OBJECT_H #define BRPC_SHARED_OBJECT_H diff --git a/src/brpc/simple_data_pool.h b/src/brpc/simple_data_pool.h index cae50282ca..aaf5892627 100644 --- a/src/brpc/simple_data_pool.h +++ b/src/brpc/simple_data_pool.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Tue Oct 13 18:44:28 CST 2015 +// Copyright (c) 2015 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. #ifndef BRPC_SIMPLE_DATA_POOL_H #define BRPC_SIMPLE_DATA_POOL_H diff --git a/src/brpc/socket.cpp b/src/brpc/socket.cpp index 57216556dc..d5d6a7dbfd 100644 --- a/src/brpc/socket.cpp +++ b/src/brpc/socket.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 7 17:24:45 CST 2014 +// 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 // EPOLLIN #include @@ -1024,7 +1032,6 @@ void* Socket::ProcessEvent(void* arg) { // If no: // old_head is fully written, set _write_head to NULL and return true; // old_head is not written yet, keep _write_head unchanged and return false; -// // `old_head' is last new_head got from this function or (in another word) // tail of current writing list. // `singular_node' is true iff `old_head' is the only node in its list. diff --git a/src/brpc/socket.h b/src/brpc/socket.h index 9f419cb47d..7f0250411c 100644 --- a/src/brpc/socket.h +++ b/src/brpc/socket.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 7 17:24:45 CST 2014 +// 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. #ifndef BRPC_SOCKET_H #define BRPC_SOCKET_H diff --git a/src/brpc/socket_id.h b/src/brpc/socket_id.h index 908175986a..10440da05a 100644 --- a/src/brpc/socket_id.h +++ b/src/brpc/socket_id.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 7 17:24:45 CST 2014 +// 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. #ifndef BRPC_SOCKET_ID_H #define BRPC_SOCKET_ID_H diff --git a/src/brpc/socket_inl.h b/src/brpc/socket_inl.h index 3ad6364274..f2c5bb6e09 100644 --- a/src/brpc/socket_inl.h +++ b/src/brpc/socket_inl.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 7 17:24:45 CST 2014 +// 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. // This file contains inlined implementation of socket.h diff --git a/src/brpc/socket_map.cpp b/src/brpc/socket_map.cpp index a178aa4d42..7763b0885c 100644 --- a/src/brpc/socket_map.cpp +++ b/src/brpc/socket_map.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 20:02:37 CST 2014 +// 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 #include diff --git a/src/brpc/socket_map.h b/src/brpc/socket_map.h index b288985826..04d9f1eda2 100644 --- a/src/brpc/socket_map.h +++ b/src/brpc/socket_map.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 20:02:37 CST 2014 +// 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 // std::vector #include "base/containers/flat_map.h" // FlatMap diff --git a/src/brpc/socket_message.h b/src/brpc/socket_message.h index 16bf6fee8b..7e95d33939 100644 --- a/src/brpc/socket_message.h +++ b/src/brpc/socket_message.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Sep 7 17:24:45 CST 2014 +// 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. #ifndef BRPC_SOCKET_MESSAGE_H #define BRPC_SOCKET_MESSAGE_H diff --git a/src/brpc/span.cpp b/src/brpc/span.cpp index 683154cc7d..318c6d476c 100644 --- a/src/brpc/span.cpp +++ b/src/brpc/span.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Jan 14 17:08:55 CST 2015 +// Copyright (c) 2015 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 #include diff --git a/src/brpc/span.h b/src/brpc/span.h index 6e28192971..5babf7f9fb 100644 --- a/src/brpc/span.h +++ b/src/brpc/span.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Jan 14 17:08:55 CST 2015 +// Copyright (c) 2015 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. // NOTE: RPC users are not supposed to include this file. diff --git a/src/brpc/stream.cpp b/src/brpc/stream.cpp index 3ac6616961..320706f817 100644 --- a/src/brpc/stream.cpp +++ b/src/brpc/stream.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/09/23 17:38:32 +// Copyright (c) 2015 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 "brpc/stream.h" diff --git a/src/brpc/stream.h b/src/brpc/stream.h index 463108049c..a86fef25e3 100644 --- a/src/brpc/stream.h +++ b/src/brpc/stream.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/09/23 17:37:46 +// Copyright (c) 2015 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. #ifndef BRPC_STREAM_H #define BRPC_STREAM_H diff --git a/src/brpc/stream_creator.h b/src/brpc/stream_creator.h index 2360498f50..8b6257a8f4 100644 --- a/src/brpc/stream_creator.h +++ b/src/brpc/stream_creator.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 16:27:49 CST 2014 +// 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. #ifndef BRPC_STREAM_CREATOR_H #define BRPC_STREAM_CREATOR_H diff --git a/src/brpc/stream_impl.h b/src/brpc/stream_impl.h index 422b0aae81..0478291581 100644 --- a/src/brpc/stream_impl.h +++ b/src/brpc/stream_impl.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: 2015/11/16 21:49:09 +// Copyright (c) 2015 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. #ifndef BRPC_STREAM_IMPL_H #define BRPC_STREAM_IMPL_H diff --git a/src/brpc/traceprintf.h b/src/brpc/traceprintf.h index 74d1d51faa..9ef62b5909 100644 --- a/src/brpc/traceprintf.h +++ b/src/brpc/traceprintf.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Sun Aug 31 16:27:49 CST 2014 +// 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. #ifndef BRPC_TRACEPRINTF_H #define BRPC_TRACEPRINTF_H diff --git a/src/brpc/trackme.cpp b/src/brpc/trackme.cpp index afc3714198..112caaae0f 100644 --- a/src/brpc/trackme.cpp +++ b/src/brpc/trackme.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Feb 4 16:47:12 CST 2016 +// Copyright (c) 2016 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. #ifndef _GNU_SOURCE #define _GNU_SOURCE diff --git a/src/brpc/trackme.h b/src/brpc/trackme.h index 574eebc5b4..56904a97bf 100644 --- a/src/brpc/trackme.h +++ b/src/brpc/trackme.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved -// -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Thu Feb 4 16:47:12 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_TRACKME_H #define BRPC_TRACKME_H diff --git a/src/brpc/ts.cpp b/src/brpc/ts.cpp index c832e34e1c..a8dc3c2320 100644 --- a/src/brpc/ts.cpp +++ b/src/brpc/ts.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Sep 21 17:25:56 CST 2016 +// Copyright (c) 2016 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 "brpc/log.h" #include "brpc/policy/rtmp_protocol.h" diff --git a/src/brpc/ts.h b/src/brpc/ts.h index 58d9063eaf..85b091b965 100644 --- a/src/brpc/ts.h +++ b/src/brpc/ts.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date: Wed Sep 21 17:25:56 CST 2016 +// Copyright (c) 2016 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. #ifndef BRPC_TS_H #define BRPC_TS_H diff --git a/src/brpc/uri.cpp b/src/brpc/uri.cpp index 9916d49346..4670587cfd 100644 --- a/src/brpc/uri.cpp +++ b/src/brpc/uri.cpp @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date 2014/10/27 10:31:51 +// 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 "brpc/log.h" #include "brpc/details/http_parser.h" // http_parser_parse_url diff --git a/src/brpc/uri.h b/src/brpc/uri.h index bc9a0c556a..5ea0d3dc2a 100644 --- a/src/brpc/uri.h +++ b/src/brpc/uri.h @@ -1,8 +1,16 @@ -// Baidu RPC - A framework to host and access services throughout Baidu. -// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved - -// Author: The baidu-rpc authors (pbrpc@baidu.com) -// Date 2014/10/24 19:01:57 +// 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. #ifndef BRPC_URI_H #define BRPC_URI_H