]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: introduce IOHandler class for message and event dispatching
authorYingxin Cheng <yingxin.cheng@intel.com>
Wed, 7 Dec 2022 02:08:18 +0000 (10:08 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 8 Feb 2023 06:07:41 +0000 (14:07 +0800)
commit6a20a68aaf26be39fca10ed10134b7863078a105
treef4fdd3d8cda03ed4c69f7b1208ad40d6aeed3e16
parentf60fd12151867920545f6034136e1b8cb6310062
crimson/net: introduce IOHandler class for message and event dispatching

IOHandler also represents the Connection as ConnectionHandler.

ProtocolV2 and IOHandler will be finally running in different cores, as
ProtocolV2 will need to call IOHandler interfaces asynchronously. And
IOHandler will also notify ProtocolV2 through HandshakeListener
asynchronously.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/CMakeLists.txt
src/crimson/net/Protocol.cc [deleted file]
src/crimson/net/Protocol.h [deleted file]
src/crimson/net/ProtocolV2.cc
src/crimson/net/ProtocolV2.h
src/crimson/net/SocketConnection.cc
src/crimson/net/SocketConnection.h
src/crimson/net/io_handler.cc [new file with mode: 0644]
src/crimson/net/io_handler.h [new file with mode: 0644]