├── .github └── workflows │ └── ccpp.yml ├── .gitignore ├── .gitmodules ├── CODE_OF_CONDUCT.md ├── LICENSE ├── Makefile ├── README.md ├── benchmark ├── Makefile ├── client │ ├── Makefile │ └── client.cc ├── proto │ ├── Makefile │ └── login.proto └── server │ ├── Makefile │ └── server.cc ├── example ├── Chat │ ├── Client │ │ ├── Client.cpp │ │ └── Client.h │ ├── readme.md │ ├── server │ │ ├── ProRequest.cpp │ │ ├── ProRequest.h │ │ ├── Server.cpp │ │ ├── Server.h │ │ ├── Str.cpp │ │ └── Str.h │ └── timer │ │ ├── Timer.h │ │ ├── readme.md │ │ └── timer.cpp ├── HeartChat │ ├── Client │ │ ├── Client.cpp │ │ ├── Client.h │ │ └── timer │ │ │ ├── Timer.h │ │ │ └── timer.cpp │ └── server │ │ ├── ProRequest.cpp │ │ ├── ProRequest.h │ │ ├── Server.cpp │ │ ├── Server.h │ │ ├── Str.cpp │ │ └── Str.h ├── client │ ├── Makefile │ └── client_main.cc └── server │ ├── Makefile │ └── server_main.cc ├── makefile.libs ├── makefile.moss ├── src ├── Makefile ├── command.cc ├── command.h ├── common │ ├── common.cc │ └── common.h ├── connection.cc ├── connection.h ├── frame.cc ├── frame.h ├── interfaces.h ├── routine.cc ├── routine.h ├── rpc │ ├── rpc.cc │ └── rpc.h ├── stream.cc ├── stream.h └── util │ ├── databuffer.cc │ ├── databuffer.h │ ├── fsm.cc │ ├── fsm.h │ ├── util.cc │ └── util.h ├── test ├── Makefile ├── moss_test │ ├── Makefile │ ├── test.cc │ ├── test_connection.cc │ ├── test_databuffer.cc │ ├── test_frame.cc │ ├── test_fsm.cc │ ├── test_routine.cc │ └── test_stream.cc ├── proto │ ├── Makefile │ └── test.proto ├── test.cc ├── test_server │ ├── Makefile │ └── main.cc └── testcases │ ├── Makefile │ ├── test.cc │ ├── test_P2PConnection.cc │ └── test_ServerProxy.cc └── third_party └── Makefile /.github/workflows/ccpp.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/.github/workflows/ccpp.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/.gitmodules -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/benchmark/Makefile -------------------------------------------------------------------------------- /benchmark/client/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/benchmark/client/Makefile -------------------------------------------------------------------------------- /benchmark/client/client.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/benchmark/client/client.cc -------------------------------------------------------------------------------- /benchmark/proto/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/benchmark/proto/Makefile -------------------------------------------------------------------------------- /benchmark/proto/login.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/benchmark/proto/login.proto -------------------------------------------------------------------------------- /benchmark/server/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/benchmark/server/Makefile -------------------------------------------------------------------------------- /benchmark/server/server.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/benchmark/server/server.cc -------------------------------------------------------------------------------- /example/Chat/Client/Client.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/Client/Client.cpp -------------------------------------------------------------------------------- /example/Chat/Client/Client.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/Client/Client.h -------------------------------------------------------------------------------- /example/Chat/readme.md: -------------------------------------------------------------------------------- 1 | # 简易通信 2 | -------------------------------------------------------------------------------- /example/Chat/server/ProRequest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/server/ProRequest.cpp -------------------------------------------------------------------------------- /example/Chat/server/ProRequest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/server/ProRequest.h -------------------------------------------------------------------------------- /example/Chat/server/Server.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/server/Server.cpp -------------------------------------------------------------------------------- /example/Chat/server/Server.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/server/Server.h -------------------------------------------------------------------------------- /example/Chat/server/Str.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/server/Str.cpp -------------------------------------------------------------------------------- /example/Chat/server/Str.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/server/Str.h -------------------------------------------------------------------------------- /example/Chat/timer/Timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/timer/Timer.h -------------------------------------------------------------------------------- /example/Chat/timer/readme.md: -------------------------------------------------------------------------------- 1 | # 简易定时器 2 | -------------------------------------------------------------------------------- /example/Chat/timer/timer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/Chat/timer/timer.cpp -------------------------------------------------------------------------------- /example/HeartChat/Client/Client.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/Client/Client.cpp -------------------------------------------------------------------------------- /example/HeartChat/Client/Client.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/Client/Client.h -------------------------------------------------------------------------------- /example/HeartChat/Client/timer/Timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/Client/timer/Timer.h -------------------------------------------------------------------------------- /example/HeartChat/Client/timer/timer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/Client/timer/timer.cpp -------------------------------------------------------------------------------- /example/HeartChat/server/ProRequest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/server/ProRequest.cpp -------------------------------------------------------------------------------- /example/HeartChat/server/ProRequest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/server/ProRequest.h -------------------------------------------------------------------------------- /example/HeartChat/server/Server.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/server/Server.cpp -------------------------------------------------------------------------------- /example/HeartChat/server/Server.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/server/Server.h -------------------------------------------------------------------------------- /example/HeartChat/server/Str.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/server/Str.cpp -------------------------------------------------------------------------------- /example/HeartChat/server/Str.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/HeartChat/server/Str.h -------------------------------------------------------------------------------- /example/client/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/client/Makefile -------------------------------------------------------------------------------- /example/client/client_main.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/client/client_main.cc -------------------------------------------------------------------------------- /example/server/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/server/Makefile -------------------------------------------------------------------------------- /example/server/server_main.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/example/server/server_main.cc -------------------------------------------------------------------------------- /makefile.libs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/makefile.libs -------------------------------------------------------------------------------- /makefile.moss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/makefile.moss -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/Makefile -------------------------------------------------------------------------------- /src/command.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/command.cc -------------------------------------------------------------------------------- /src/command.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/command.h -------------------------------------------------------------------------------- /src/common/common.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/common/common.cc -------------------------------------------------------------------------------- /src/common/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/common/common.h -------------------------------------------------------------------------------- /src/connection.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/connection.cc -------------------------------------------------------------------------------- /src/connection.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/connection.h -------------------------------------------------------------------------------- /src/frame.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/frame.cc -------------------------------------------------------------------------------- /src/frame.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/frame.h -------------------------------------------------------------------------------- /src/interfaces.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/interfaces.h -------------------------------------------------------------------------------- /src/routine.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/routine.cc -------------------------------------------------------------------------------- /src/routine.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/routine.h -------------------------------------------------------------------------------- /src/rpc/rpc.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/rpc/rpc.cc -------------------------------------------------------------------------------- /src/rpc/rpc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/rpc/rpc.h -------------------------------------------------------------------------------- /src/stream.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/stream.cc -------------------------------------------------------------------------------- /src/stream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/stream.h -------------------------------------------------------------------------------- /src/util/databuffer.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/util/databuffer.cc -------------------------------------------------------------------------------- /src/util/databuffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/util/databuffer.h -------------------------------------------------------------------------------- /src/util/fsm.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/util/fsm.cc -------------------------------------------------------------------------------- /src/util/fsm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/util/fsm.h -------------------------------------------------------------------------------- /src/util/util.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/util/util.cc -------------------------------------------------------------------------------- /src/util/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/src/util/util.h -------------------------------------------------------------------------------- /test/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/Makefile -------------------------------------------------------------------------------- /test/moss_test/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/moss_test/Makefile -------------------------------------------------------------------------------- /test/moss_test/test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/moss_test/test.cc -------------------------------------------------------------------------------- /test/moss_test/test_connection.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/moss_test/test_connection.cc -------------------------------------------------------------------------------- /test/moss_test/test_databuffer.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/moss_test/test_databuffer.cc -------------------------------------------------------------------------------- /test/moss_test/test_frame.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/moss_test/test_frame.cc -------------------------------------------------------------------------------- /test/moss_test/test_fsm.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/moss_test/test_fsm.cc -------------------------------------------------------------------------------- /test/moss_test/test_routine.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/moss_test/test_routine.cc -------------------------------------------------------------------------------- /test/moss_test/test_stream.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/moss_test/test_stream.cc -------------------------------------------------------------------------------- /test/proto/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/proto/Makefile -------------------------------------------------------------------------------- /test/proto/test.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/proto/test.proto -------------------------------------------------------------------------------- /test/test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/test.cc -------------------------------------------------------------------------------- /test/test_server/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/test_server/Makefile -------------------------------------------------------------------------------- /test/test_server/main.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/test_server/main.cc -------------------------------------------------------------------------------- /test/testcases/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/testcases/Makefile -------------------------------------------------------------------------------- /test/testcases/test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/testcases/test.cc -------------------------------------------------------------------------------- /test/testcases/test_P2PConnection.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/testcases/test_P2PConnection.cc -------------------------------------------------------------------------------- /test/testcases/test_ServerProxy.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/test/testcases/test_ServerProxy.cc -------------------------------------------------------------------------------- /third_party/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertIndie/moss/HEAD/third_party/Makefile --------------------------------------------------------------------------------