Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问我现在捕获到了mysql的通讯数据包,mysql-protocl怎么用 #5

Open
deserteaglec opened this issue Jul 18, 2018 · 5 comments

Comments

@deserteaglec
Copy link

请问我现在捕获到了mysql的通讯数据包,mysql-protocl怎么用

@deserteaglec
Copy link
Author

怎么通过mysql-protocol解析我捕获的数据包中的内容?

@sea-boat
Copy link
Owner

要给mysql发送什么包就可以创建对应的包,并写入到套接字中。接收也类似。

@deserteaglec
Copy link
Author

我的意思是,我现在用tcpdump抓到的包,如何解析,有没有示例代码呢?

@sea-boat
Copy link
Owner

可以参考下单元测试。

@deserteaglec
Copy link
Author

单元测试里,我看都是用数据拼装成对应的包,没有从包到数据的测试啊?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants