Hi,
Sorry for late reply. I was busy with other tasks.
Thanks for the files. I have written the client socket code as you mentioned in the attached file. And I am running a server on my laptop written using python. Everything is working fine.
The issue I am facing is:
1) When I am trying to receive data over socket, its not receiving correctly. Like if I am sending "Hello", its receiving as "Hell" or "llo", etc. Though its receiving correctly also sometimes.
Correct me if I am wrong, I suspect a problem is in:
1) Send socket is done using server which is executing send function in an infinite for loop without delay.
2) Recv function is executing on imxrt1176 with 1ms task delay.
3) Is the issue related to timing?
and also if I want to set socket in non-blocking state, I can't see any non-blocking option under setsockopt() function. But in send and recv function, under flags parameters it can be given. Is it correct or I am missing something?