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

binary data over UDP is truncated at first \0 byte #39

Open
zerorist opened this issue Nov 11, 2017 · 1 comment
Open

binary data over UDP is truncated at first \0 byte #39

zerorist opened this issue Nov 11, 2017 · 1 comment

Comments

@zerorist
Copy link

Hello
I found that using
void ELClientSocket::send(const char* data, int len)
with any string containing \0 leads to the sending of a truncated string.
I don't understand well the lines
_elc->Request(data, strlen(data)); if (data != NULL && len > 0) { _elc->Request(data, len); }
but I tried to comment out the first line and it seems to be functionnal.
Can you please confirm I didn't make a mistake, and eventually patch this class?
Your libs are really usefull to me, thank you a lot!
Thanks you for your attention.

@Yaonian72
Copy link

I also have a similar situation. After sending about 24 hours of data, the wifi loop will send nothing.

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

No branches or pull requests

2 participants