Hi,
I´m using the TCPSocket library.
When I receive something, the event WRITEABLE occurs and I´d wanted to know if it is possible , after recv, to send something inside the case of TCPSocket_WRITEABLE envent...
Thanks for your help and regards,
María.
Hi,
I´m using the TCPSocket library.
When I receive something, the event WRITEABLE occurs and I´d wanted to know if it is possible , after recv, to send something inside the case of TCPSocket_WRITEABLE envent...
Thanks for your help and regards,
María.
Yes, you can do this. But you still need to call Net:poll() outside of the event handler, so you will need some code in your main loop. Thats why most TCP programs use the event handler for signaling the current state to a main loop, which does the heavy lifting.
Yes, you can do this. But you still need to call Net:poll() outside of the event handler, so you will need some code in your main loop. Thats why most TCP programs use the event handler for signaling the current state to a main loop, which does the heavy lifting.
Yes, I meant that.
WRITEABLE event occurs after a send always? I mean, the way to know if a send was executed correctly is seeing if the WRITEABLE event occurs (suposing that I don´t receive anything on the other side).
thanks
Yes, I meant that.
WRITEABLE event occurs after a send always? I mean, the way to know if a send was executed correctly is seeing if the WRITEABLE event occurs (suposing that I don´t receive anything on the other side).
thanks
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
Hi, I´m using the TCPSocket library. When I receive something, the event WRITEABLE occurs and I´d wanted to know if it is possible , after recv, to send something inside the case of TCPSocket_WRITEABLE envent... Thanks for your help and regards, María.