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

这个安卓客户端可以用吗? #8

Open
enkechan opened this issue Apr 9, 2019 · 1 comment
Open

这个安卓客户端可以用吗? #8

enkechan opened this issue Apr 9, 2019 · 1 comment

Comments

@enkechan
Copy link

enkechan commented Apr 9, 2019

我试了下安卓,Output回调时在send线程中用回调的bytes去构建一个DatagramPacket,然后往服务端发送,服务端收不到。但是安卓这边也没报错。。。 不知道是啥原因了,使用原始的UDP去发送就一切正常。大哥能帮忙看看不

@enkechan
Copy link
Author

enkechan commented Apr 9, 2019

output回调的bytes好大,我明明只send了一个13个字符的字符串,结果打印出bytes的长度4000多,但是size是对的,37。这是咋回事啊。 还是说那个bytes要做一些处理后才能拿给DatagramPacket去用?

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

1 participant