RTOS TCP connection to send data #2196
-
I found that the connection was successful, but the data was not sent when I used mg_send. When I used send function directly, the data was sent successfully.I read the content of mg_send function and found that c->is_udp is the key. When I connect to tcp, c->is_udp is 0, and send function is not used. Is there something I did not set |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please refrain from opening several discussions for the same subject, and follow the guidelines. (Response to your former question above, still applies) You are not properly porting to your OS, that flag is only set when using UDP and you are using TCP. As the docs say, with TCP data is actually sent later when mg_mgr_poll() runs. If it is not sent it is because it is not finding your socket as having outstanding data and that is either because your port of your OS is not working or because you are not properly calling the manager. In any case, this is not the place to discuss that, as already said. So:
We don't run ThreadX so we can't reproduce your issue, all we can do is see your code and make suggestions |
Beta Was this translation helpful? Give feedback.
#2180 (comment)
Please refrain from opening several discussions for the same subject, and follow the guidelines. (Response to your former question above, still applies)
You are not properly porting to your OS, that flag is only set when using UDP and you are using TCP. As the docs say, with TCP data is actually sent later when mg_mgr_poll() runs. If it is not sent it is because it is not finding your socket as having outstanding data and that is either because your port of your OS is not working or because you are not properly calling the manager. In any case, this is not the place to discuss that, as already said. So: