sockets.tcp problems
Posted: 15 Nov 2016 15:57
Hi
I can't get onclose to trigger on sockets.tcp. It triggers when I actively call close(), but not when the remote host closes the connection. Am I using the wrong property?
Also, after I have successfully connected to a remote server and received something using onrecv, I'm attempting to re-assign the onrecv property to a different function. But doing so has no effect.
Are these bugs or am I doing something wrong?
Kind regards,
Emil Müller
P.S.
I'm looking at the documentation about TCP sockets found here:
https://github.com/Z-Wave-Me/Z-Way-Manu ... v/cap3.tex
I can't get onclose to trigger on sockets.tcp. It triggers when I actively call close(), but not when the remote host closes the connection. Am I using the wrong property?
Also, after I have successfully connected to a remote server and received something using onrecv, I'm attempting to re-assign the onrecv property to a different function. But doing so has no effect.
Are these bugs or am I doing something wrong?
Kind regards,
Emil Müller
P.S.
I'm looking at the documentation about TCP sockets found here:
https://github.com/Z-Wave-Me/Z-Way-Manu ... v/cap3.tex