forked from Radium98/muduo_rpc
-
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
Radium_98
committed
Nov 21, 2022
1 parent
8d537ba
commit e674613
Showing
119 changed files
with
18,246 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"buildTargets":[],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
make --dry-run --always-make --keep-going --print-directory | ||
make: Entering directory '/home/ubuntu/mprpc' | ||
make: Leaving directory '/home/ubuntu/mprpc' | ||
|
||
make: *** No targets specified and no makefile found. Stop. | ||
|
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"makefile.extensionOutputFolder": "./.vscode", | ||
"files.associations": { | ||
"iostream": "cpp", | ||
"string": "cpp", | ||
"array": "cpp", | ||
"atomic": "cpp", | ||
"bit": "cpp", | ||
"*.tcc": "cpp", | ||
"cctype": "cpp", | ||
"chrono": "cpp", | ||
"clocale": "cpp", | ||
"cmath": "cpp", | ||
"condition_variable": "cpp", | ||
"cstddef": "cpp", | ||
"cstdint": "cpp", | ||
"cstdio": "cpp", | ||
"cstdlib": "cpp", | ||
"cstring": "cpp", | ||
"ctime": "cpp", | ||
"cwchar": "cpp", | ||
"cwctype": "cpp", | ||
"deque": "cpp", | ||
"map": "cpp", | ||
"set": "cpp", | ||
"unordered_map": "cpp", | ||
"unordered_set": "cpp", | ||
"vector": "cpp", | ||
"exception": "cpp", | ||
"fstream": "cpp", | ||
"functional": "cpp", | ||
"initializer_list": "cpp", | ||
"iosfwd": "cpp", | ||
"istream": "cpp", | ||
"limits": "cpp", | ||
"memory": "cpp", | ||
"mutex": "cpp", | ||
"new": "cpp", | ||
"optional": "cpp", | ||
"ostream": "cpp", | ||
"ratio": "cpp", | ||
"sstream": "cpp", | ||
"stdexcept": "cpp", | ||
"streambuf": "cpp", | ||
"string_view": "cpp", | ||
"system_error": "cpp", | ||
"thread": "cpp", | ||
"type_traits": "cpp", | ||
"tuple": "cpp", | ||
"typeinfo": "cpp", | ||
"utility": "cpp", | ||
"bitset": "cpp", | ||
"complex": "cpp", | ||
"list": "cpp", | ||
"typeindex": "cpp", | ||
"variant": "cpp" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,232 @@ | ||
make all --print-data-base --no-builtin-variables --no-builtin-rules --question | ||
make: *** No rule to make target 'all'. Stop. | ||
|
||
# GNU Make 4.2.1 | ||
# Built for x86_64-pc-linux-gnu | ||
# Copyright (C) 1988-2016 Free Software Foundation, Inc. | ||
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | ||
# This is free software: you are free to change and redistribute it. | ||
# There is NO WARRANTY, to the extent permitted by law. | ||
|
||
# Make data base, printed on Sun Jul 24 23:37:30 2022 | ||
|
||
# Variables | ||
|
||
# automatic | ||
<D = $(patsubst %/,%,$(dir $<)) | ||
# automatic | ||
?F = $(notdir $?) | ||
# default | ||
.SHELLFLAGS := -c | ||
# environment | ||
XDG_SESSION_CLASS = user | ||
# environment | ||
VSCODE_AGENT_FOLDER = /home/ubuntu/.vscode-server | ||
# environment | ||
XDG_SESSION_TYPE = tty | ||
# automatic | ||
?D = $(patsubst %/,%,$(dir $?)) | ||
# environment | ||
PLATFORMIO_IDE = 2.5.0 | ||
# automatic | ||
@D = $(patsubst %/,%,$(dir $@)) | ||
# automatic | ||
@F = $(notdir $@) | ||
# default | ||
MAKE_VERSION := 4.2.1 | ||
# makefile | ||
CURDIR := /home/ubuntu/mprpc | ||
# makefile | ||
SHELL = /bin/sh | ||
# environment | ||
VSCODE_NLS_CONFIG = {"locale":"zh-cn","availableLanguages":{"*":"zh-cn"},"_languagePackId":"1d735750dbb1b9066c7513078396ba0f.zh-cn","_translationsConfigFile":"/home/ubuntu/.vscode-server/data/clp/1d735750dbb1b9066c7513078396ba0f.zh-cn/tcf.json","_cacheRoot":"/home/ubuntu/.vscode-server/data/clp/1d735750dbb1b9066c7513078396ba0f.zh-cn","_resolvedLanguagePackCoreLocation":"/home/ubuntu/.vscode-server/data/clp/1d735750dbb1b9066c7513078396ba0f.zh-cn/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9","_corruptedFile":"/home/ubuntu/.vscode-server/data/clp/1d735750dbb1b9066c7513078396ba0f.zh-cn/corrupted.info","_languagePackSupport":true} | ||
# environment | ||
_ = /home/ubuntu/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/node | ||
# makefile | ||
MAKEFILE_LIST := | ||
# 'override' directive | ||
GNUMAKEFLAGS := | ||
# environment | ||
DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus | ||
# environment | ||
LESSOPEN = | /usr/bin/lesspipe %s | ||
# environment | ||
VSCODE_CWD = /home/ubuntu | ||
# environment | ||
SSH_CONNECTION = 171.43.146.69 14383 10.0.4.14 22 | ||
# environment | ||
NO_PROXY = 127.0.0.1 | ||
# environment | ||
XDG_RUNTIME_DIR = /run/user/1000 | ||
# environment | ||
ELECTRON_RUN_AS_NODE = 1 | ||
# environment | ||
VSCODE_IPC_HOOK_CLI = /run/user/1000/vscode-ipc-bfb01c5d-8fe9-4d27-9cfa-9d5af941c65a.sock | ||
# default | ||
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load | ||
# environment | ||
LS_COLORS = | ||
# automatic | ||
%F = $(notdir $%) | ||
# environment | ||
PWD = /home/ubuntu/mprpc | ||
# default | ||
.LOADED := | ||
# automatic | ||
*D = $(patsubst %/,%,$(dir $*)) | ||
# environment | ||
HISTTIMEFORMAT = %F %T | ||
# environment | ||
VSCODE_AMD_ENTRYPOINT = vs/workbench/api/node/extensionHostProcess | ||
# environment | ||
HOME = /home/ubuntu | ||
# environment | ||
LESSCLOSE = /usr/bin/lesspipe %s %s | ||
# environment | ||
LOGNAME = ubuntu | ||
# environment | ||
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = true | ||
# automatic | ||
+F = $(notdir $+) | ||
# environment | ||
VSCODE_HANDLES_UNCAUGHT_ERRORS = true | ||
# automatic | ||
^D = $(patsubst %/,%,$(dir $^)) | ||
# environment | ||
MAKELEVEL := 0 | ||
# environment | ||
PLATFORMIO_PATH = /home/ubuntu/.platformio/python3/bin:/home/ubuntu/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin | ||
# default | ||
MAKE = $(MAKE_COMMAND) | ||
# default | ||
MAKECMDGOALS := all | ||
# environment | ||
PATH = /home/ubuntu/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin | ||
# environment | ||
SHLVL = 0 | ||
# environment | ||
JAVA_HOME = /usr/lib/jvm/java-11-openjdk-amd64 | ||
# environment | ||
XDG_SESSION_ID = 245252 | ||
# environment | ||
USER = ubuntu | ||
# makefile | ||
.DEFAULT_GOAL := | ||
# automatic | ||
%D = $(patsubst %/,%,$(dir $%)) | ||
# default | ||
MAKE_COMMAND := make | ||
# default | ||
.VARIABLES := | ||
# automatic | ||
*F = $(notdir $*) | ||
# environment | ||
LANGUAGE = en_US.utf8: | ||
# makefile | ||
MAKEFLAGS = pqrR | ||
# environment | ||
MFLAGS = -pqrR | ||
# environment | ||
SSH_CLIENT = 171.43.146.69 14383 22 | ||
# automatic | ||
+D = $(patsubst %/,%,$(dir $+)) | ||
# environment | ||
BROWSER = /home/ubuntu/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/bin/helpers/browser.sh | ||
# environment | ||
VSCODE_HANDLES_SIGPIPE = true | ||
# default | ||
MAKEFILES := | ||
# environment | ||
PROMPT_COMMAND = history -a; history -a; | ||
# automatic | ||
<F = $(notdir $<) | ||
# environment | ||
PLATFORMIO_CALLER = vscode | ||
# environment | ||
LC_ALL = C | ||
# automatic | ||
^F = $(notdir $^) | ||
# default | ||
SUFFIXES := | ||
# environment | ||
HISTSIZE = 3000 | ||
# default | ||
.INCLUDE_DIRS = /usr/include /usr/local/include /usr/include | ||
# default | ||
.RECIPEPREFIX := | ||
# default | ||
MAKE_HOST := x86_64-pc-linux-gnu | ||
# environment | ||
LANG = C | ||
# environment | ||
MOTD_SHOWN = pam | ||
# variable set hash-table stats: | ||
# Load=74/1024=7%, Rehash=0, Collisions=10/96=10% | ||
|
||
# Pattern-specific Variable Values | ||
|
||
# No pattern-specific variable values. | ||
|
||
# Directories | ||
|
||
# . (device 64514, inode 788832): 12 files, no impossibilities. | ||
|
||
# 12 files, no impossibilities in 1 directories. | ||
|
||
# Implicit Rules | ||
|
||
# No implicit rules. | ||
|
||
# Files | ||
|
||
# Not a target: | ||
all: | ||
# Command line target. | ||
# Implicit rule search has been done. | ||
# File does not exist. | ||
# File has not been updated. | ||
|
||
# Not a target: | ||
Makefile: | ||
# Implicit rule search has been done. | ||
# File does not exist. | ||
# File has been updated. | ||
# Failed to be updated. | ||
|
||
# Not a target: | ||
makefile: | ||
# Implicit rule search has been done. | ||
# File does not exist. | ||
# File has been updated. | ||
# Failed to be updated. | ||
|
||
# Not a target: | ||
.DEFAULT: | ||
# Implicit rule search has not been done. | ||
# Modification time never checked. | ||
# File has not been updated. | ||
|
||
# Not a target: | ||
GNUmakefile: | ||
# Implicit rule search has been done. | ||
# File does not exist. | ||
# File has been updated. | ||
# Failed to be updated. | ||
|
||
# files hash-table stats: | ||
# Load=6/1024=1%, Rehash=0, Collisions=0/15=0% | ||
# VPATH Search Paths | ||
|
||
# No 'vpath' search paths. | ||
|
||
# No general ('VPATH' variable) search path. | ||
|
||
# strcache buffers: 1 (0) / strings = 20 / storage = 167 B / avg = 8 B | ||
# current buf: size = 8162 B / used = 167 B / count = 20 / avg = 8 B | ||
|
||
# strcache performance: lookups = 23 / hit rate = 13% | ||
# hash-table stats: | ||
# Load=20/8192=0%, Rehash=0, Collisions=1/23=4% | ||
# Finished Make data base on Sun Jul 24 23:37:30 2022 | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# 设置cmake最低版本和项目名称 | ||
cmake_minimum_required(VERSION 3.0) | ||
project(mprpc) | ||
|
||
# 生成debug版本,可以进行gdb调试 | ||
set(CMAKE_BUILD_TYPE "Debug") | ||
|
||
# 设置项目可执行文件的输出路径 | ||
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) | ||
|
||
# 设置项目库文件的输出路径 | ||
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) | ||
|
||
# 设置项目编译头文件的搜索路径 -I | ||
include_directories(${PROJECT_SOURCE_DIR}/src/include) | ||
include_directories(${PROJECT_SOURCE_DIR}/example) | ||
# 设置项目库文件搜索路径 -L | ||
link_directories(${PROJECT_SOURCE_DIR}/lib) | ||
|
||
# src包含了mprpc框架的相关代码 | ||
add_subdirectory(src) | ||
# example包含了mprpc框架使用的示例代码 | ||
add_subdirectory(example) |
Empty file.
Empty file.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
21:40:10 => first log message! | ||
21:40:10 => /home/ubuntu/mprpc/example/callee/friendservice.cc:main:51 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
22:6:1 => [info]service_name: FriendServiceRpc | ||
22:6:1 => [info]method_name: GetFriendsList |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
14:50:52 => [info]service_name: FriendServiceRpc | ||
14:50:52 => [info]method_name: GetFriendsList | ||
14:59:21 => [info]service_name: FriendServiceRpc | ||
14:59:21 => [info]method_name: GetFriendsList | ||
15:2:33 => [info]service_name: FriendServiceRpc | ||
15:2:33 => [info]method_name: GetFriendsList | ||
15:4:10 => [info]service_name: FriendServiceRpc | ||
15:4:10 => [info]method_name: GetFriendsList | ||
15:17:21 => [info]service_name: FriendServiceRpc | ||
15:17:21 => [info]method_name: GetFriendsList | ||
15:28:2 => [info]ddddd | ||
15:28:2 => [info]ddddd | ||
15:28:2 => [info]service_name: FriendServiceRpc | ||
15:28:2 => [info]method_name: GetFriendsList | ||
15:31:18 => [info]ddddd | ||
15:31:18 => [info]ddddd | ||
15:31:18 => [info]service_name: FriendServiceRpc | ||
15:31:18 => [info]method_name: GetFriendsList | ||
15:35:2 => [info]ddddd | ||
15:35:2 => [info]ddddd | ||
15:35:2 => [info]service_name: FriendServiceRpc | ||
15:35:2 => [info]method_name: GetFriendsList | ||
16:2:42 => [info]ddddd | ||
16:2:42 => [info]ddddd | ||
16:2:42 => [info]service_name: FriendServiceRpc | ||
16:2:42 => [info]method_name: GetFriendsList | ||
16:11:0 => [info]ddddd | ||
16:11:0 => [info]ddddd | ||
16:11:0 => [info]service_name: FriendServiceRpc | ||
16:11:0 => [info]method_name: GetFriendsList | ||
16:13:33 => [info]ddddd | ||
16:13:33 => [info]ddddd | ||
16:13:33 => [info]service_name: FriendServiceRpc | ||
16:13:33 => [info]method_name: GetFriendsList | ||
16:18:44 => [info]ddddd | ||
16:18:44 => [info]ddddd | ||
16:18:44 => [info]service_name: FriendServiceRpc | ||
16:18:44 => [info]method_name: GetFriendsList | ||
16:20:3 => [info]ddddd | ||
16:20:3 => [info]ddddd | ||
16:20:3 => [info]service_name: FriendServiceRpc | ||
16:20:3 => [info]method_name: GetFriendsList | ||
16:23:5 => [info]ddddd | ||
16:23:5 => [info]ddddd | ||
16:23:5 => [info]service_name: FriendServiceRpc | ||
16:23:5 => [info]method_name: GetFriendsList |
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# rpc节点的ip地址 | ||
rpcserverip=127.0.0.1 | ||
# rpc节点的port端口号 | ||
rpcserverport=8000 | ||
# zk的ip地址 | ||
zookeeperip=127.0.0.1 | ||
# zk的port端口号 | ||
zookeeperport=2181 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]} |
Oops, something went wrong.