]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: implement accepting/connecting states
authorYingxin <yingxin.cheng@intel.com>
Mon, 15 Oct 2018 20:54:23 +0000 (04:54 +0800)
committerYingxin <yingxin.cheng@intel.com>
Wed, 17 Oct 2018 18:15:26 +0000 (02:15 +0800)
commitf368daf5a1ccb57377e598579da7cd7a87a6bae9
tree38847ae54b4f39dd02ae49b998906c66cb886251
parent2a914d4c2d2eeef31be592238eec51cf3f4f3167
crimson/net: implement accepting/connecting states

- introduce the new accepting/connecting connection states.
- return ConnectionRef immediately when connect().
- manage the ownership of the accepting connections.
- manage the ownership of the registered connections.
- encapsulate a Socket class because it is not created when constructing
  a SocketConnection, and allow it to be replaced in the future.
- refactor related interfaces.

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
src/crimson/CMakeLists.txt
src/crimson/mon/MonClient.cc
src/crimson/net/Connection.h
src/crimson/net/Messenger.h
src/crimson/net/Socket.cc [new file with mode: 0644]
src/crimson/net/Socket.h [new file with mode: 0644]
src/crimson/net/SocketConnection.cc
src/crimson/net/SocketConnection.h
src/crimson/net/SocketMessenger.cc
src/crimson/net/SocketMessenger.h