Mongodb 源码阅读笔记

来自Dennis的知识库
2017年5月24日 (三) 07:09Dennis zhuang讨论 | 贡献的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到: 导航搜索

网络层

  • 具体实现在 src/mongo/util/net 目录下:
├── abstract_message_port.h
├── asio_message_port.cpp
├── asio_message_port.h
├── asio_ssl_context.cpp
├── asio_ssl_context.h
├── hostandport.cpp
├── hostandport.h
├── hostandport_test.cpp
├── hostname_canonicalization.cpp
├── hostname_canonicalization.h
├── listen.cpp
├── listen.h
├── message.cpp
├── message.h
├── message_port.cpp
├── message_port.h
├── message_port_mock.cpp
├── message_port_mock.h
├── message_port_startup_param.cpp
├── message_port_startup_param.h
├── op_msg.cpp
├── op_msg.h
├── sock.cpp
├── sock.h
├── sock_test.cpp
├── sockaddr.cpp
├── sockaddr.h
├── socket_exception.cpp
├── socket_exception.h
├── socket_poll.cpp
├── socket_poll.h
├── ssl_expiration.cpp
├── ssl_expiration.h
├── ssl_manager.cpp
├── ssl_manager.h
├── ssl_options.cpp
├── ssl_options.h
├── ssl_types.h
├── thread_idle_callback.cpp
└── thread_idle_callback.h
  • 针对上层提供的服务接口定义在 src/mongo/transport 下,核心就是 transport_layer 和 service_entry_point:
个人工具
名字空间

变换
操作
导航
工具箱