How yyt6801/dict works
Dict is a text-backed English–Chinese dictionary exposed through a C++ HTTP server. The main workflow is a word-query request, URL parsing, dictionary lookup through the DLL, and an HTTP translation response; the server also forwards request details to a Python logging service. The README documents the lookup and logging capabilities, but dictionary and DLL implementation details were not sampled, so those relationships are based on the README rather than inspected code.
Main entry points: http_server1.cpp Request handler · TCP_socket_server.py Log receiver · test_dll.cpp Dictionary DLL · DICT Dictionary text
Components 9
HTTP query service
- HTTP listener
http_server1.cpp - Request handler
http_server1.cpp - Word URL parser
http_server1.cpp - HTTP translation
http_server1.cpp
Dictionary lookup
- Dictionary DLL
test_dll.cpp - Dictionary text
DICT
Request logging
- Log receiver
TCP_socket_server.py - Request log
Other components
- HTTP client
Connections 9
- HTTP client → HTTP listener: sends query
README.md - HTTP listener → Request handler: dispatches request
http_server1.cpp - Request handler → Word URL parser: parses URL
http_server1.cpp - Request handler → Dictionary DLL: looks up word
http_server1.cpp - Dictionary DLL → Dictionary text: searches entries
README.md - Request handler → HTTP translation: sends translation
http_server1.cpp - Request handler → Log receiver: forwards request
http_server1.cpp - HTTP listener → Log receiver: forwards client info
http_server1.cpp - Log receiver → Request log: appends records
TCP_socket_server.py