forked from apache/brpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gejun
committed
Sep 2, 2017
1 parent
93d9847
commit 9809ab9
Showing
258 changed files
with
3,332 additions
and
1,284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 <gflags/gflags.h> | ||
#include "base/fd_guard.h" // fd_guard | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 <google/protobuf/descriptor.h> | ||
#include "base/sys_byteorder.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 <ostream> | ||
#include <vector> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 <ostream> | ||
#include "brpc/closure_guard.h" // ClosureGuard | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 <iomanip> | ||
#include <sys/time.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 <ostream> | ||
#include <iomanip> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ([email protected]) | ||
// 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 <ostream> | ||
#include <dirent.h> // opendir | ||
|
Oops, something went wrong.