added extern "C" in case if compiler is cpp. This allow to use toyws from cpp code
tws_receiveframe returns frame_length instead of zero (on success). without this change if you use own buffer in tws_receiveframe then you can't know the real frame size, cause size remains the same.
Checklist
[X] I've read the notice in the PR template before submitting it
My PR is:
Trivial and:
[ ] I've created an issue (please mention the issue number)
Description
The are two changes:
Checklist