推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
mkstring
V2EX  ›  Python

推荐 tcp/udp 协议通用解析工具

  •  
  •   mkstring · Sep 27, 2018 · 2383 views
    This topic created in 2785 days ago, the information mentioned may be changed or developed.
    我需要一个解析 tcp/udp 协议的工具,比如给一个界面,输入自己的协议的定义以及使用这个协议的设备 ID,然后保存到数据库,使用统一的注册包结构,比如 #device_id#user_name# 这样,当用户的设备连接后,提取对应的协议,然后解包。

    请问这样子的东西有没有已经开源 /闭源的工具?如果没有的话,我就自己写了。
    3 replies    2018-09-27 17:08:03 +08:00
    bp0
        1
    bp0  
       Sep 27, 2018
    wireshark 可以用来抓包,好像可以自己写插件。不知道满足你的要求不。
    opengps
        2
    opengps  
       Sep 27, 2018
    没猜错的话,你这也是写的 gps 终端设备通信 socket 服务端
    这种协议自定的内容,你得自己写代码,你顶多找到 socket 的接受发送半成品
    mkstring
        3
    mkstring  
    OP
       Sep 27, 2018
    @bp0 可以用 lua 写,可是 wireshark 无法用作服务器
    @opengps 是的,就是服务器端,需要支持多种自定义协议
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   936 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 21:17 · PVG 05:17 · LAX 14:17 · JFK 17:17
    ♥ Do have faith in what you're doing.