Hello,
I´ve programmed a TCP Socket interface using the TCPSocket and the EthernetNetIf libraries, but I think that I don´t understand very well the onTCPSocketEvent function.
I´m able to make a "send" once but I don´t know how and where can I do more "send".
I mean, for example, in the "main" I make he "connect", then , in the " TCPSOCKET_CONNECTED" event, I make the "send" and in the "TCPSOCKET_READABLE" I make the "recv".
If I want to send more than one packet, do I need to make another "connect" or how can I do?
I´m new working with mbed and C++ so I need some help.
Thanks & Regards,
María.
Hello, I´ve programmed a TCP Socket interface using the TCPSocket and the EthernetNetIf libraries, but I think that I don´t understand very well the onTCPSocketEvent function. I´m able to make a "send" once but I don´t know how and where can I do more "send". I mean, for example, in the "main" I make he "connect", then , in the " TCPSOCKET_CONNECTED" event, I make the "send" and in the "TCPSOCKET_READABLE" I make the "recv". If I want to send more than one packet, do I need to make another "connect" or how can I do?
I´m new working with mbed and C++ so I need some help.
Thanks & Regards,
María.